TheGraph MCP Server
An MCP server that powers AI agents with indexed blockchain data from The Graph.
Overview
TheGraph MCP Server is a server that powers AI agents by providing them with indexed blockchain data from The Graph, enabling efficient data retrieval and analysis.
To use the server, clone the repository from GitHub, configure the client with your API key, and utilize the available tools to fetch subgraph schemas and execute GraphQL queries.
- Fetches the schema of specified subgraphs for AI agents. - Executes GraphQL queries against subgraphs. - Supports both human-readable and JSON schema outputs.
- AI agents retrieving blockchain data for analysis.
- Developers crafting custom GraphQL queries for specific data needs.
- Analyzing trading patterns and liquidity in decentralized finance applications.
Add to your AI client
Use these steps to connect TheGraph MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"thegraph-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-thegraph-mcp-kukapay"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"thegraph-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-thegraph-mcp-kukapay"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"thegraph-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-thegraph-mcp-kukapay"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"thegraph-mcp-kukapay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-thegraph-mcp-kukapay"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"thegraph-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-thegraph-mcp-kukapay"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"thegraph-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-thegraph-mcp-kukapay"
]
}
}
}FAQ
What programming language is used for TheGraph MCP Server?
The server is built using Python.
Is there a license for using TheGraph MCP Server?
Yes, it is licensed under the MIT License.
How can I contribute to TheGraph MCP Server?
You can contribute by submitting issues or pull requests on the GitHub repository.