Provides a powerful Ethereum blockchain data extraction and analysis interface using Cryo and DuckDB, enabling efficient...
Created byApr 22, 2025
Cryo MCP
A Model Completion Protocol (MCP) server for the Cryo blockchain data extraction tool.
Cryo MCP allows you to access Cryo's powerful blockchain data extraction capabilities via an API server that implements the MCP protocol, making it easy to query blockchain data from any MCP-compatible client.
For LLM Users: SQL Query Workflow Guide
When using this MCP server to run SQL queries on blockchain data, follow this workflow:
Download data with query_dataset:
Explore schema with get_sql_table_schema:
Run SQL with query_sql:
Alternatively, use the combined approach with query_blockchain_sql:
For a complete working example, see examples/sql_workflow_example.py.
Features
Full Cryo Dataset Access: Query any Cryo dataset through an API server
MCP Integration: Works seamlessly with MCP clients
Flexible Query Options: Support for all major Cryo filtering and output options
Block Range Options: Query specific blocks, latest block, or relative ranges
Contract Filtering: Filter data by contract address
Latest Block Access: Easy access to the latest Ethereum block data
Multiple Output Formats: JSON, CSV, and Parquet support
Schema Information: Get detailed dataset schemas and sample data
SQL Queries: Run SQL queries directly against downloaded blockchain data
Installation (Optional)
This is not required if you will run the tool with uvx directly.
--data-dir PATH: Directory to store downloaded data (overrides CRYO_DATA_DIR environment variable, defaults to ~/.cryo-mcp/data/)
Environment Variables
ETH_RPC_URL: Default Ethereum RPC URL to use when not specified via command line
CRYO_DATA_DIR: Default directory to store downloaded data when not specified via command line
Advanced Usage
SQL Queries Against Blockchain Data
Cryo MCP allows you to run powerful SQL queries against blockchain data, combining the flexibility of SQL with Cryo's data extraction capabilities:
Two-Step SQL Query Flow
You can split data extraction and querying into two separate steps:
Combined SQL Query Flow
For convenience, you can also use the combined function that handles both steps:
Note: For SQL queries, always use output_format="parquet" when downloading data to ensure optimal performance with DuckDB. When using query_blockchain_sql, you should refer to the file paths directly in your SQL using the read_parquet() function.
Querying with Block Ranges
Cryo MCP supports the full range of Cryo's block specification syntax:
A Model Completion Protocol (MCP) server for the Cryo blockchain data extraction tool.
Cryo MCP allows you to access Cryo's powerful blockchain data extraction capabilities via an API server that implements the MCP protocol, making it easy to query blockchain data from any MCP-compatible client.
For LLM Users: SQL Query Workflow Guide
When using this MCP server to run SQL queries on blockchain data, follow this workflow:
Download data with query_dataset:
Explore schema with get_sql_table_schema:
Run SQL with query_sql:
Alternatively, use the combined approach with query_blockchain_sql:
For a complete working example, see examples/sql_workflow_example.py.
Features
Full Cryo Dataset Access: Query any Cryo dataset through an API server
MCP Integration: Works seamlessly with MCP clients
Flexible Query Options: Support for all major Cryo filtering and output options
Block Range Options: Query specific blocks, latest block, or relative ranges
Contract Filtering: Filter data by contract address
Latest Block Access: Easy access to the latest Ethereum block data
Multiple Output Formats: JSON, CSV, and Parquet support
Schema Information: Get detailed dataset schemas and sample data
SQL Queries: Run SQL queries directly against downloaded blockchain data
Installation (Optional)
This is not required if you will run the tool with uvx directly.
--data-dir PATH: Directory to store downloaded data (overrides CRYO_DATA_DIR environment variable, defaults to ~/.cryo-mcp/data/)
Environment Variables
ETH_RPC_URL: Default Ethereum RPC URL to use when not specified via command line
CRYO_DATA_DIR: Default directory to store downloaded data when not specified via command line
Advanced Usage
SQL Queries Against Blockchain Data
Cryo MCP allows you to run powerful SQL queries against blockchain data, combining the flexibility of SQL with Cryo's data extraction capabilities:
Two-Step SQL Query Flow
You can split data extraction and querying into two separate steps:
Combined SQL Query Flow
For convenience, you can also use the combined function that handles both steps:
Note: For SQL queries, always use output_format="parquet" when downloading data to ensure optimal performance with DuckDB. When using query_blockchain_sql, you should refer to the file paths directly in your SQL using the read_parquet() function.
Querying with Block Ranges
Cryo MCP supports the full range of Cryo's block specification syntax: