🚧 Welcome to the Allium MCP Server!
Allium MCP Server is currently in Beta. We are constantly improving our MCP Server and adding new features. If you have any feedback or suggestions, please reach out to us at support@allium.so or share your thoughts or suggestions via this feedback form.🧠 Overview
The Allium MCP Server lets your agents query blockchain data using structured tool calls — no REST or custom glue code required. Agents can run saved Explorer queries, issue raw SQL, and introspect Allium schemas via the Model Context Protocol (MCP). Endpoint:https://mcp.allium.so
🛠 Available Tools
Allium’s MCP Server exposes the following tools:Tool Name | Description |
---|---|
explorer_run_query | Run a saved Explorer query using its query_id . Supports parameterization. |
explorer_run_sql | Run a raw SQL string directly against Allium’s production datasets. |
explorer_search_schemas | Semantic search across all schema docs. Returns relevant table IDs. |
explorer_fetch_schema | Fetch YAML schema metadata by table IDs (full table name, e.g. ethereum.raw.blocks ). |
💡 Schema IDs match full table names (e.g.
ethereum.raw.token_transfers
). Use search before fetching.🔐 Authentication
All tools require an API key. Use the HTTP header:🔽 How to Use the Tools
1. Run Saved Queries (explorer_run_query
)
To run a query you created in the Allium Explorer UI:
- Save the query to get its
query_id
- Use the
explorer_run_query
tool:
content.text
with:
sql
: the full query textdata
: result rowsmeta.columns
: column names and typesqueried_at
: execution timestamp
2. Run Raw SQL (explorer_run_sql
)
Use this for ad-hoc queries:
explorer_run_query
.
3. Explore Schemas
🔎 Search (explorer_search_schemas
)
Find relevant tables:
📄 Fetch Schema (explorer_fetch_schema
)
Retrieve a table’s YAML schema:
⚙️ Agent Integration
LangGraph / LangChain
Register tools in your agent’s configuration:explorer_fetch_schema
and explorer_search_schemas
the same way.
mcp-remote
/ Local CLI
If using streamable-http
or other CLI-based setups:
📦 Response Format
All query tools return a JSON-RPC result in this structure:content.text
string as JSON to extract:
sql
: Full query stringdata
: List of result rows (objects)meta.columns
: Each column’s name + data typequeried_at
: ISO timestamp
See Also
- Saved Queries: Learn how to save queries in the Explorer UI and obtain a query ID in the Run Queries documentation (this is required to use
explorer_run_query
). - Explorer API Reference: For details on the underlying REST endpoints (running queries via API, retrieving results, etc.), see the Explorer API Reference. This can provide additional context on query runs and available parameters when using the MCP tool.