Basic information
About The Graph Token API MCP Server
Official MCP server that turns The Graph’s Token API into a plug-and-play web3 data tool. Exposes ERC-20 & NFT metadata, balances, transfers, top-holder stats, prices, and more, allowing LLMs to run SQL queries on structured and indexed blockchain data.
The Graph Token API MCP is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by pinax-network. It exposes 4 tools, including list_databases, list_tables, describe_table, run_query. Supported transport: stdio. License: Apache-2.0. Source code is hosted on github.com. Related topics: blockchain, crypto, cryptocurrency.
Setup
{
"mcpServers": {
"token-api": {
"command": "npx",
"args": [
"@pinax/mcp",
"--sse-url",
"https://token-api.mcp.thegraph.com/sse"
],
"env": {
"ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
}
}
}
}
{
"mcpServers": {
"token-api": {
"command": "npx",
"args": [
"@pinax/mcp",
"--sse-url",
"https://token-api.mcp.thegraph.com/sse"
],
"env": {
"ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
}
}
}
}
{
"servers": {
"token-api": {
"command": "npx",
"args": [
"@pinax/mcp",
"--sse-url",
"https://token-api.mcp.thegraph.com/sse"
],
"env": {
"ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
}
}
}
}
The Graph Token API MCP config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"token-api": {
"command": "npx",
"args": [
"@pinax/mcp",
"--sse-url",
"https://token-api.mcp.thegraph.com/sse"
],
"env": {
"ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
}
}
}
}
The Graph Token API MCP tools
-
list_databases
— List available databases
(no parameters) -
list_tables
— List available tables from a database
database:string* -
describe_table
— Describe the schema of a table from a database
database:string*, table:string* -
run_query
— Run a read-only SQL query
query:string*
Overview
What is The Graph Token API MCP?
An MCP server that provides an interface to The Graph Token API, connecting to a ClickHouse database. It runs on Bun and exposes SSE and HTTP streaming endpoints for MCP communication.
How to use The Graph Token API MCP?
Run with bun run index.ts. Configure via CLI options or environment variables for port, ClickHouse URL, database name, username, password, and logging preferences. The server listens on http://localhost:8080/sse (SSE) and http://localhost:8080/stream (HTTP streaming) by default.
Key features of The Graph Token API MCP
- Runs with the Bun runtime
- Provides SSE and HTTP streaming endpoints
- Connects to a ClickHouse database
- Configurable via CLI flags and environment variables
- Supports pretty and verbose logging options
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In