Loading...
{
"mcpServers": {
"thegraph-mcp": {
"command": "uv",
"args": ["--directory", "path/to/thegraph-mcp", "run", "main.py"],
"env": {
"THEGRAPH_API_KEY": "your_api_key_here"
}
}
}
}getSubgraphSchemaFetches the schema of a specified subgraph, enabling AI to understand the data structure.
Read-only operation, no data modification.
querySubgraphExecutes a GraphQL query against a specified subgraph, retrieving indexed blockchain data.
Read-only operation, retrieves data based on the query.
This server is relatively safe for read-only access to blockchain data. The primary risks involve query construction and API key management. It's crucial to monitor query patterns and secure the API key to prevent abuse.