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.1.tar.gz (2.9 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.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mseep_rootdata_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ded6cfa54c3ce8444fd9737137ee99b3ea7e61257e43bbfe30def9c40037f9dd
MD5 cbb6c0831cb52ae572c557b131935722
BLAKE2b-256 b42c3cbc23cc22825e9df8d411f6c2d69b0f51cd92a0c12c7e4054fa23877442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_rootdata_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65b3143262f8a165d8aab81c1aaeac3ab6ed9f23c53a212a21d1cf486908248a
MD5 f0e78426182eebfdef0c71f9e8a36b0e
BLAKE2b-256 c424aafcdb3dd8597b8387c353ca83ede447a0057402268f83850846154a0c2b

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