A Python-based Model Completion Protocol (MCP) server for accessing the RootData API. This project provides a comprehensive toolkit for crypto market intelligence, enabling AI agents and applications to fetch detailed information about crypto projects, investors, market trends, and more.
RootData MCP Python creates a bridge between AI assistants/agents and the RootData API, which offers extensive data about the cryptocurrency ecosystem. The project uses FastMCP to create a Model Completion Protocol server that can be accessed via different transport methods:
- Server-Sent Events (SSE)
- Standard IO (stdio)
- Cloudflare Workers
- Comprehensive Crypto Data: Access detailed information about projects, investors, and market trends
- AI-friendly Interface: Designed to be easily used by AI assistants and agents
- Multiple Transport Options: Support for SSE, stdio, and Cloudflare deployment
- Advanced Analysis Tools: High-level functions for comprehensive crypto market analysis
- Modular Design: Clean separation between API interaction and MCP server functionality
- Python 3.12+
- RootData API key
- Clone this repository:
git clone https://github.com/yourusername/rootdata-mcp-python.git
cd rootdata-mcp-python- Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate # On Windows, use: .venv\Scripts\activate
pip install -e .
# use uv cli
uv sync
uv run file-name.py- Create a
.envfile based on the provided.env.example:
cp .env.example .env- Add your RootData API key to the
.envfile:
ROOTDATA_API_KEY=your_api_key_here
Use fastmcp install to set up your server for persistent use within the Claude Desktop app. It handles creating an isolated environment using uv.
fastmcp install your_server_file.py
# With a custom name in Claude
fastmcp install your_server_file.py --name "My Analysis Tool"
# With extra packages and environment variables
fastmcp install server.py --with requests -v API_KEY=123 -f .envThere are three server options available:
python rootdata_server_sse.pyThis will start an SSE server at http://127.0.0.1:8000.
python rootdata_server_stdio.pyIdeal for direct integration with applications.
python rootdata_server_cloudflare.pyOptimized for deployment to Cloudflare Workers.
The examples directory contains sample clients that demonstrate how to connect to the server:
rootdata_client_sse.py: Example of connecting via SSErootdata_client_stdio.py: Example of connecting via stdiorootdata_client_openai.py: Example of integration with OpenAI
The server provides several categories of tools:
searchEntities: Search for projects, VCs, or people by keywordsgetProject: Get detailed project informationgetOrg: Get detailed VC/organization information- And many more specific data retrieval tools
analyzeComprehensive: Comprehensive analysis combining multiple RootData endpointsinvestigateEntity: Deep dive into a specific entity with all related informationtrackTrends: Track market trends across projects, funding, and social metricscompareEntities: Compare multiple projects or investors side by side
For best results, the following search strategies are recommended:
- Start with
searchEntities(query='project_name')to identify the project - Use
investigateEntity(entity_name='project_name', investigation_scope='all')for deep analysis - Optionally use
trackTrendsandcompareEntitiesto place in context
- Start with
searchEntities(query='investor_name')to identify the investor - Use
investigateEntity(entity_name='investor_name', entity_type='investor')for portfolio analysis - Examine recent investments with
getFundingRoundsorgetInvestors
- Use
trackTrends(category='all', time_range='7d')for a broad market overview - Identify hot projects with
getHotProjects(days=7)orgetXHotProjects() - Examine funding trends with
getFundingRounds()for recent activity
Contributions are welcome! Please feel free to submit a Pull Request.
[Specify your license here]