Explore and query blockchain subgraphs through a private MCP server running in Docker. Use this skill when exploring GraphQL subgraphs, querying blockchain data from subgraphs (NFT transfers, DEX swaps, DeFi metrics), examining subgraph schemas, or exporting discovered queries for project use. The skill manages Docker-based MCP server interaction and provides utilities for query development and export.
View on GitHubnschwermann/claude-tools
subgraph-explorer
subgraph-explorer/skills/subgraph-explorer/SKILL.md
January 16, 2026
Select agents to install to:
npx add-skill https://github.com/nschwermann/claude-tools/blob/main/subgraph-explorer/skills/subgraph-explorer/SKILL.md -a claude-code --skill subgraph-explorerInstallation paths:
.claude/skills/subgraph-explorer/# Subgraph Explorer ## Overview This skill enables exploration and querying of blockchain subgraphs through a private MCP server. It provides tools for managing the Docker-based server, exploring GraphQL schemas, executing queries against configured subgraphs, and exporting discovered queries for project integration. ## Quick Start ### Starting the MCP Server Before using subgraph exploration features, ensure the MCP server is running: ```bash bash scripts/start_mcp_server.sh ``` This starts the Docker container with: - **SSE endpoint**: `http://localhost:8000` (for MCP communication) - **Metrics endpoint**: `http://localhost:9091/metrics` (for monitoring) Check server status: ```bash bash scripts/check_mcp_status.sh ``` Stop the server: ```bash bash scripts/stop_mcp_server.sh ``` **Note**: The scripts default to `~/Workspace/subgraph-mcp` as the project path. Set `SUBGRAPH_MCP_PATH` environment variable to override. ### MCP Server Connection The MCP server runs in SSE mode and exposes the following tools via HTTP: **Registry-based tools:** - `list_subgraphs` - List all configured subgraphs - `search_subgraphs_by_keyword` - Search subgraphs by keyword - `get_schema_by_id` - Get GraphQL schema for a configured subgraph - `execute_query_by_id` - Execute query against a configured subgraph - `get_query_examples_by_id` - Get query examples for a subgraph - `get_subgraph_guidance_by_id` - Get subgraph-specific guidance **Ad-hoc tools:** - `get_schema_by_url` - Get schema from any GraphQL endpoint (no registry needed) - `execute_query_by_url` - Execute query against any GraphQL endpoint (no registry needed) To interact with the MCP server, use the WebFetch tool to make HTTP requests to the SSE endpoint at `http://localhost:8000`. ## Core Workflows ### 1. Exploring Configured Subgraphs When exploring subgraphs in the registry (`subgraphs.json`): **Step 1: List or Search** - Use `list_subgraphs` to see all available subgraphs - Use `search_subgraphs_by_ke