Skip to main content

MCP server for RootData API integration

Project description

RootData MCP Server

Introduction

这是一个基于 Model Context Protocol (MCP) 的服务器,用于集成 RootData API,提供加密货币和区块链项目的数据查询功能。

它允许 Claude 和其他 AI 助手通过 MCP 接口直接获取项目信息、机构详情和搜索结果。

Available Tools

本服务器提供以下 MCP 工具:

  • search: 根据关键词搜索项目/VC/人物的简要信息
  • get_project: 根据项目 ID 获取项目的详细信息
  • get_organization: 根据机构 ID 获取风投机构的详细信息

Setup

Prerequisites

  • Python 3.10 或更高版本
  • uv 包管理器(推荐)

Installation

  1. 克隆此仓库:
git clone https://github.com/jincai/rootdata-mcp-server
cd rootdata-mcp-server
  1. 如果你还没有安装 uv,可以安装它:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
curl -LsSf https://astral.sh/uv/install.ps1 | powershell
  1. 安装依赖:
# 创建虚拟环境并激活
uv venv
source .venv/bin/activate  # Windows 上: .venv\Scripts\activate

# 安装依赖
uv add "mcp[cli]" httpx python-dotenv
  1. 设置环境变量:
# 创建 .env 文件存储 API 密钥
cp .env.example .env

# 在 .env 文件中设置 API 密钥
ROOTDATA_API_KEY=your-rootdata-api-key
  1. 运行服务器:
uv run server.py

Connecting to Claude Desktop

  1. 安装 Claude Desktop(如果你还没有安装)

  2. 创建或编辑 Claude Desktop 配置文件:

# macOS
mkdir -p ~/Library/Application\ Support/Claude/
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. 添加以下配置:
{
  "mcpServers": {
    "rootdata": {
      "command": "/path/to/uv",
      "args": [
        "--directory",
        "/absolute/path/to/rootdata-mcp-server",
        "run",
        "server.py"
      ]
    }
  }
}

/path/to/uv 替换为 which uv 的结果,将 /absolute/path/to/rootdata-mcp-server 替换为此项目的绝对路径。

  1. 重启 Claude Desktop

  2. 现在你应该能在 Claude Desktop 的工具菜单(锤子图标)中看到 RootData 工具

  3. 尝试向 Claude 提问,例如:

    • "搜索以太坊相关的项目"
    • "获取项目 ID 为 12 的详细信息"
    • "查询机构 ID 为 219 的风投机构信息"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_rootdata_mcp_server-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_rootdata_mcp_server-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mseep_rootdata_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mseep_rootdata_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2cae71fc634ff5ff6e2028d56595efc8a84f2f9f3af4a4030994abb6cb5b890
MD5 cf9234bbf8cfba4eed99783a5f4e06d5
BLAKE2b-256 f3ef437af159b5f0e966dc481fd7562e23112cfafa44264c4ce0758039208f61

See more details on using hashes here.

File details

Details for the file mseep_rootdata_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_rootdata_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd32ab3524e78c38a7b7cd3c199767b62cfc7148c232f36fcb81b3d5bc4ba8ea
MD5 7396708e634f91e3fd9706d0d76e86fe
BLAKE2b-256 1240cb3f83b92310bb4e18a3bc658e99bf34dd8d0782d3d1e0acebf629e79cd1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page