You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/en/ai-suite/token-api-mcp/introduction.mdx
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,15 @@ sidebarTitle: 'Introduction'
5
5
6
6
Token API MCP server is an open-source implementation of [Anthropic's Model Context Protocol](https://modelcontextprotocol.io/introduction).
7
7
8
-
This MCP server makes on-chain token data, including metadata, balances, transfers, and holder statistics, accessible through a set of MCP tools. Any compatible client can use these tools to fetch and analyze token information through a standardized interface. It connects to The Graph's hosted Token API database, enabling AI assistants to query real-time blockchain data using natural language requests that get translated into optimized SQL queries.
8
+
This MCP server makes on-chain token data, including metadata, balances, transfers, and holder statistics, accessible through a set of MCP tools. Any compatible client can use these tools to fetch and analyze token information through a standardized interface. It connects to The Graph's hosted Token API database, enabling AI assistants to query blockchain data using natural language requests.
9
9
10
-
The server itself does not host any language model. It simply converts MCP calls into data look-ups and returns structured results, letting the client's own LLM incorporate the results.
10
+
There are two types of MCP available for use:
11
+
- A REST-based MCP, the default, that communicates with the Token API.
12
+
- A SQL-based MCP, for advanced users, that allows for communicating with the backend databases that powers the Token API.
11
13
12
-
Think of it as a USB-C hub: it standardizes the plug-and-play connection between AI agents and The Graph's Token API data.
14
+
The REST-based MCP simply exposes the API endpoints to your LLM based on the OpenAPI specification (available at https://token-api.thegraph.com/openapi). It automatically stays up-to-date with new Token API releases so you don't miss any new features !
15
+
16
+
The SQL-based MCP provides the LLM tools to list databases and tables as well as run SQL queries directly on the data. It is meant for advanced users who need different use cases that the standard API endpoints cannot replicate. For best results, it is advised to use an LLM model specifically tuned for working with SQL.
13
17
14
18
## What You Can Do
15
19
@@ -20,4 +24,4 @@ Think of it as a USB-C hub: it standardizes the plug-and-play connection between
20
24
- Ask natural language questions about token data without writing smart contract calls
21
25
- Access historical transfer data to analyze token movement over time
22
26
23
-
The Token MCP server provides [Claude](/ai-suite/token-api-mcp/claude/), [Cline](/ai-suite/token-api-mcp/cline/), and [Cursor](/ai-suite/token-api-mcp/cursor/) with direct, conversational access to onchain token data.
27
+
The Token MCP server provides [Claude](/ai-suite/token-api-mcp/claude/), [Cline](/ai-suite/token-api-mcp/cline/), [Cursor](/ai-suite/token-api-mcp/cursor/)and any other client with MCP integration a direct, conversational access to onchain token data.
0 commit comments