背景图片

mcp-snapshot-server

Developer Tools

Description

A Model Context Protocol server for interacting with Snapshot.org, providing tools to query Snapshot spaces, proposals, and users.

Author

crazyrabbitLTC

Created Date

2024-12-01

Tutorial

Learn how to use this MCP server

Step-by-Step Guide to Using MCP Snapshot Server

Step 1: Installation

  • Open your terminal and run the following command to install the MCP Snapshot Server: bash npm install mcp-snapshot-server

Step 2: Configure with Claude Desktop

  • Locate your Claude Desktop config file:
    • On Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • On Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Add the following configuration to the file:

{ "mcpServers": { "snapshot": { "command": "node", "args": [ "/ABSOLUTE/PATH/TO/snapshot-server/build/index.js" ] } } }

  • Replace /ABSOLUTE/PATH/TO/snapshot-server/build/index.js with the actual path to the index.js file in your snapshot-server directory.

Step 3: Using Available Tools

  • Get Spaces: Use the getSpaces tool to fetch a list of Snapshot spaces.
  • Get Ranked Spaces: Use the getRankedSpaces tool to fetch a ranked list of Snapshot spaces with detailed information.
  • Get Proposals: Use the getProposals tool to fetch proposals for a specific space.
  • Get Proposal: Use the getProposal tool to fetch details of a specific proposal.
  • Get User: Use the getUser tool to fetch information about a Snapshot user.

Step 4: Development

  • Clone the repository: bash git clone https://github.com/crazyrabbitLTC/mcp-snapshot-server.git

  • Install dependencies: bash npm install

  • Build the project: bash npm run build