by kukapay
Provides AI agents with indexed blockchain data from The Graph, allowing schema discovery and GraphQL queries against any subgraph.
Thegraph Mcp Server enables AI agents to retrieve subgraph schemas and execute GraphQL queries on blockchain data indexed by The Graph. It acts as a bridge between AI workflows and decentralized data sources.
serverConfig
section.THEGRAPH_API_KEY
environment variable.getSubgraphSchema
and querySubgraph
– from your AI agent or prompt.getSubgraphSchema
): Fetches human‑readable GraphQL or JSON schema for any subgraph ID.querySubgraph
): Runs arbitrary GraphQL queries against a chosen subgraph.uv
) with minimal environment setup.THEGRAPH_API_KEY
in the environment.querySubgraph
accepts any valid GraphQL string.serverConfig
(see below).An MCP server that powers AI agents with indexed blockchain data from The Graph.
Fetches the schema of a specified subgraph, providing AI agents with the context needed to generate GraphQL queries.
Parameters:
subgraphId
: The subgraph ID (e.g., "QmZBQcF...")asText
: Output format flag
true
: Returns human-readable GraphQL schemafalse
: Returns JSON schema (default)Executes GraphQL queries against a specified subgraph. While queries are typically generated by AI, you can also manually craft your own.
Parameters:
subgraphId
: The subgraph IDquery
: GraphQL query stringgit clone https://github.com/kukapay/thegraph-mcp.git
{
"mcpServers": {
"thegraph-mcp": {
"command": "uv",
"args": ["--directory", "path/to/thegraph-mcp", "run", "main.py"],
"env": {
"THEGRAPH_API_KEY": "your_api_key_here"
}
}
}
}
Here are some natural language prompts to trigger the tools:
This project is licensed under the MIT License. See the LICENSE file for details.
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "thegraph-mcp": { "command": "uv", "args": [ "--directory", "path/to/thegraph-mcp", "run", "main.py" ], "env": { "THEGRAPH_API_KEY": "<YOUR_API_KEY>" } } } }
Discover more MCP servers with similar functionality and use cases
by danny-avila
Provides a customizable ChatGPT‑like web UI that integrates dozens of AI models, agents, code execution, image generation, web search, speech capabilities, and secure multi‑user authentication, all open‑source and ready for self‑hosting.
by ahujasid
BlenderMCP integrates Blender with Claude AI via the Model Context Protocol (MCP), enabling AI-driven 3D scene creation, modeling, and manipulation. This project allows users to control Blender directly through natural language prompts, streamlining the 3D design workflow.
by pydantic
Enables building production‑grade generative AI applications using Pydantic validation, offering a FastAPI‑like developer experience.
by GLips
Figma-Context-MCP is a Model Context Protocol (MCP) server that provides Figma layout information to AI coding agents. It bridges design and development by enabling AI tools to directly access and interpret Figma design data for more accurate and efficient code generation.
by mcp-use
Easily create and interact with MCP servers using custom agents, supporting any LLM with tool calling and offering multi‑server, sandboxed, and streaming capabilities.
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
by lharries
WhatsApp MCP Server is a Model Context Protocol (MCP) server for WhatsApp that allows users to search, read, and send WhatsApp messages (including media) through AI models like Claude. It connects directly to your personal WhatsApp account via the WhatsApp web multi-device API and stores messages locally in a SQLite database.
by idosal
GitMCP is a free, open-source remote Model Context Protocol (MCP) server that transforms any GitHub project into a documentation hub, enabling AI tools to access up-to-date documentation and code directly from the source to eliminate "code hallucinations."
by Klavis-AI
Klavis AI provides open-source Multi-platform Control Protocol (MCP) integrations and a hosted API for AI applications. It simplifies connecting AI to various third-party services by managing secure MCP servers and authentication.