The Graph MCP Skill for Openclaw

Enables AI agents to perform subgraph discovery, schema retrieval, and GraphQL execution using The Graph's MCP endpoint.

jolestar
v1.0.0
Mar 8, 2026
0
982
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install thegraph-mcp-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install thegraph-mcp-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is The Graph MCP Skill?

The Graph MCP Skill allows developers to integrate decentralized data indexing into their AI-driven workflows. By utilizing the uxc utility, this skill facilitates seamless interaction with The Graph's subgraphs via a native Server-Sent Events (SSE) interface. It is a fundamental component of the Openclaw Skills catalog for anyone building applications that require real-time blockchain data retrieval. The skill automates the complexity of Model Context Protocol (MCP) interactions, including envelope parsing and error handling, ensuring a reliable connection to The Graph's global data network.

The Graph MCP Skill Use Cases

  • Discovering subgraphs based on keywords or smart contract addresses.
  • Retrieving detailed GraphQL schemas for specific blockchain deployments.
  • Comparing deployment performance through 30-day query volume metrics.
  • Executing precise GraphQL queries to extract on-chain data for analysis.
  • Building automated research agents that utilize Openclaw Skills for blockchain intelligence.

How The Graph MCP Skill Works

  1. Establish connection by probing the official Graph MCP SSE endpoint using uxc.
  2. Configure secure authentication by binding a The Graph Gateway API key to the endpoint.
  3. Initialize a dedicated command-line interface, thegraph-mcp-cli, for simplified interaction.
  4. Perform discovery operations to identify relevant subgraphs and validate their schemas.
  5. Execute optimized GraphQL queries against the selected deployments to fetch required data.

The Graph MCP Skill Setup

Ensure uxc is installed and your API key is ready. Execute the following commands:

# Register your API key
uxc auth credential set thegraph --secret-env THEGRAPH_API_KEY

# Create the host binding
uxc auth binding add --id thegraph-sse --host subgraphs.mcp.thegraph.com --path-prefix /sse --scheme https --credential thegraph --priority 100

# Link the command for global access
uxc link thegraph-mcp-cli https://subgraphs.mcp.thegraph.com/sse

The Graph MCP Skill Data Schema & Taxonomy

The skill utilizes a structured JSON envelope for all communications. The following data points are typically handled:

Field Description
deploymentId The unique identifier for a specific subgraph deployment.
ipfsHash The IPFS hash associated with the subgraph schema.
schema The full GraphQL schema definition returned during inspection.
queryResults The JSON output resulting from executed GraphQL queries.
authStatus Metadata regarding the validity of the current Openclaw Skills session.

The Graph MCP Skill Advanced Features

  • Integrated authentication management for secure, non-interactive API calls.
  • Support for deployment-oriented selection to ensure stability in production environments.
  • Direct link command creation for standardized script integration.
  • Automated discovery logic to identify the most queried subgraphs in the network.
  • Enhanced error handling and envelope parsing via the uxc foundation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*