返回 MCP 目录
public公开dns本地运行

快照模型搜索

一个模型上下文协议服务器, enables 与 Snapshot.org 的交互,提供通过自然语言查询 Snapshot 空间、提案和用户的工具。

article

README

MCP Snapshot Server

A Model Context Protocol server for interacting with Snapshot.org. This server provides MCP-compliant tools for querying Snapshot spaces, proposals, and users.

Installation

npm install mcp-snapshot-server

Usage with Claude Desktop

In your Claude Desktop config file (located at ~/Library/Application Support/Claude/claude_desktop_config.json on Mac or %APPDATA%Claudeclaude_desktop_config.json on Windows):

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

Available Tools

getSpaces

Get a list of Snapshot spaces

  • limit: Number of spaces to fetch (optional)
  • skip: Number of spaces to skip (optional)

getRankedSpaces

Get a ranked list of Snapshot spaces with detailed information

  • first: Number of spaces to fetch (default: 18)
  • skip: Number of spaces to skip (default: 0)
  • category: Category to filter by (default: 'all')
  • search: Search term to filter spaces (optional)

getProposals

Get proposals for a specific space

  • spaceId: ID of the space
  • state: Filter by proposal state (active, closed, pending, all)
  • limit: Number of proposals to fetch

getProposal

Get details of a specific proposal

  • proposalId: ID of the proposal

getUser

Get information about a Snapshot user

  • address: Ethereum address of the user

Development

  1. Clone the repository:
git clone https://github.com/crazyrabbitLTC/mcp-snapshot-server.git
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

License

MIT © Dennison Bertram

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端