Skip to content

Commit 6c1fe5b

Browse files
idalithbbenface
andauthored
AI Revamp (#987)
* working draft * Add icon to “AI Suite” section * updates * Edits * Updating * More Updates * Edits * Adding disclaimer * Minor edits * touchups --------- Co-authored-by: benface <[email protected]>
1 parent f1feebf commit 6c1fe5b

28 files changed

+307
-141
lines changed

nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ http {
161161
rewrite ^/docs/([a-zA-Z][a-zA-Z])/tokenomics/$ $scheme://$http_host/docs/$1/resources/tokenomics/ permanent;
162162
rewrite ^/docs/([a-zA-Z][a-zA-Z])/token-api/$ $scheme://$http_host/docs/$1/token-api/quick-start/ permanent;
163163
rewrite ^/docs/([a-zA-Z][a-zA-Z])/token-api/evm/get-transfers-evm-by-address/$ $scheme://$http_host/docs/$1/token-api/evm/get-transfers-evm/ permanent;
164+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/subgraphs/mcp/claude/$ $scheme://$http_host/docs/$1/ai-suite/subgraph-mcp/ permanent;
165+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/subgraphs/mcp/cline/$ $scheme://$http_host/docs/$1/ai-suite/subgraph-mcp/ permanent;
166+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/subgraphs/mcp/cursor/$ $scheme://$http_host/docs/$1/ai-suite/subgraph-mcp/ permanent;
167+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/subgraphs/mcp/cline/$ $scheme://$http_host/docs/$1/ai-suite/subgraph-mcp/ permanent;
168+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/token-api/mcp/cline/$ $scheme://$http_host/docs/$1/ai-suite/token-api-mcp/ permanent;
169+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/token-api/mcp/cline/$ $scheme://$http_host/docs/$1/ai-suite/token-api-mcp/ permanent;
170+
rewrite ^/docs/([a-zA-Z][a-zA-Z])/token-api/mcp/cline/$ $scheme://$http_host/docs/$1/ai-suite/token-api-mcp/ permanent;
164171
# Temporary redirects (302)
165172
rewrite ^/docs/en/querying/graph-client/$ $scheme://$http_host/docs/en/subgraphs/querying/graph-client/README/ redirect;
166173
rewrite ^/docs/en/developing/graph-ts/$ $scheme://$http_host/docs/en/subgraphs/developing/creating/graph-ts/README/ redirect;

website/next.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ const withNextra = nextra({
7070
type: 'children',
7171
title: t('global.navigation.tokenApi'),
7272
},
73+
'---4': {
74+
type: 'separator',
75+
},
76+
'ai-suite': {
77+
type: 'children',
78+
title: t('global.navigation.ai-suite'),
79+
},
7380
'---5': {
7481
type: 'separator',
7582
},

website/src/layout/Layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
SocialGitHub,
4444
SocialTelegram,
4545
SocialX,
46+
Sparkle,
4647
Stack,
4748
Subgraph,
4849
Substreams,
@@ -198,6 +199,9 @@ export default function Layout({ pageOpts, children }: NextraThemeLayoutProps<Fr
198199
if (routeWithoutLocale === '/token-api' || routeWithoutLocale.startsWith('/token-api/')) {
199200
return <APIToken alt="" />
200201
}
202+
if (routeWithoutLocale === '/ai-suite' || routeWithoutLocale.startsWith('/ai-suite/')) {
203+
return <Sparkle alt="" variant={selected ? 'fill' : 'regular'} />
204+
}
201205
if (routeWithoutLocale === '/indexing' || routeWithoutLocale.startsWith('/indexing/')) {
202206
return <RoleIndexer alt="" />
203207
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"graph-assistant": "Graph Assistant",
3+
"ai-introduction": "The Graph's AI",
4+
"subgraph-mcp": "Subgraph MCP",
5+
"token-api-mcp": "Token API MCP"
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import titles from './_meta-titles.json'
2+
3+
export default {
4+
'ai-introduction': titles['ai-introduction'],
5+
'graph-assistant': titles['graph-assistant'],
6+
'subgraph-mcp': titles['subgraph-mcp'],
7+
'token-api-mcp': titles['token-api-mcp'],
8+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
title: The Graph's AI
3+
---
4+
5+
Build with speed and scale faster with The Graph's AI.
6+
7+
## Using AI on The Graph
8+
9+
Instead of relying on static datasets or centralized APIs, you can now access live blockchain data through our **agentic** app, [Graph Assistant](/ai-suite/graph-assistant/introduction/), and use our AI-native tooling, [Subgraph MCP](/ai-suite/subgraph-mcp/introduction/), and [Token API MCP](/ai-suite/token-api-mcp/introduction/).
10+
11+
### Why Use Onchain Data with AI?
12+
13+
Using onchain data with AI unlocks powerful new ways to interact with and understand blockchain ecosystems.
14+
15+
- **AI for Non-Technical End Users**: AI can turn complex onchain data into accessible insights. Assistants powered by AI enable you to explore and analyze blockchain data without coding.
16+
- **AI for Developers**: You can use AI to interact directly with The Graph's data through your agents or build AI-powered applications on top of it. This streamlines development and opens up more intuitive, dynamic use cases.
17+
18+
## AI for Non-Technical/End Users
19+
20+
[Graph Assistant](/ai-suite/graph-assistant/introduction/) is a powerful **agentic** application that empowers users to easily interact with blockchain data. Ask questions in simple, natural language and get rich, AI powered insights. Both technical developers and non-technical product teams can move faster, make smarter decisions, and gain a clearer understanding than ever before.
21+
22+
### Benefits of Using Graph Assistant
23+
24+
- **Natural language Input**: You don't need to write complex queries or sift through dashboards. Simply ask your question in plain English and get clear, structured results.
25+
- **Multi-source support**: Works across multiple Subgraphs and Token API. The Assistant automatically determines which data source to use, so you don't have to switch tools or manage endpoints.
26+
- **Schema-free access**: You don't need to understand the schema. You can refer to tokens, protocols, dates, or addresses using natural language. The Assistant takes care of the rest.
27+
28+
### Conversational Querying with Graph Assistant
29+
30+
**Example queries:**
31+
32+
- "List the top-5 swaps by USD value in the last 24 hours."
33+
- "Give me the daily volume on Uniswap."
34+
- "List the 20 most recently registered .eth names."
35+
- "What's the best liqudity pool to put my ETH into?"
36+
- "What is the total delegated stake in The Graph network?"
37+
38+
[Graph Assistant](/ai-suite/graph-assistant/introduction/) will eventually be a one-stop shop for interacting with The Graph. Right now, it's an agentic AI app that uses state-of-the-art AI techniques, LLMs, and MCPs to understand and answer your questions about [Subgraphs](/subgraphs/developing/subgraphs/) and [Token API](/token-api/quick-start/) data.
39+
40+
## AI for Developers
41+
42+
### Enable Natural Language Access to Onchain Data
43+
44+
[Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) servers connect to Claude, Cline, and Cursor. They enable models to understand, query, and interact with structured onchain data using natural language. MCPs remove the need to write low-level queries or interact with APIs directly.
45+
46+
### Subgraph MCP
47+
48+
The [Subgraph MCP](/ai-suite/subgraph-mcp/introduction/) server connects models to Subgraphs on The Graph Network. It allows language models to explore Subgraph schemas, execute GraphQL queries, find relevant Subgraphs by keyword or contract, and surface usage metrics using natural language.
49+
50+
### Token API MCP
51+
52+
The [Token API MCP](/ai-suite/token-api-mcp/introduction/) MCP server enables models to access onchain token data. It supports querying token metadata, wallet balances, transfer history, and top token holders through simple prompts.
53+
54+
#### Benefits of Using Subgraph and Token API MCPs
55+
56+
- Query Subgraphs and token data using natural language
57+
- Access GraphQL schemas and token metadata without manual queries
58+
- Find Subgraphs by keyword or contract and check 30-day usage
59+
- Retrieve real-time data from The Graph and onchain token sources
60+
- Get wallet balances, transfer history, and top token holders
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
'quick-start': '',
3+
introduction: '',
4+
'how-to-guide': '',
5+
faq: '',
6+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Graph Assistant FAQ
3+
sidebarTitle: 'FAQ'
4+
---
5+
6+
This page summarizes some of the most common questions for developers using Graph Assistant.
7+
8+
1. What is The Graph Assistant?
9+
10+
The Graph Assistant is an AI-powered chat interface that lets you query blockchain data in plain English. Under the hood, it translates your questions into GraphQL calls against Subgraphs and the Token API, then returns results, no coding required.
11+
12+
2. What is an agentic application?
13+
14+
An agentic application combines AI-driven reasoning with external data sources or APIs to take autonomous actions on your behalf. In this case, Graph Assistant acts as an “agent” that interprets your natural-language prompts, builds and dispatches GraphQL queries, and formats the results so that you don't need to write or manage queries yourself.
15+
16+
3. Which networks and data does Graph Assistant support?
17+
18+
The Assistant has access to Subgraphs across multiple chains. If a Subgraph is published to The Graph Network and is being indexed, the Assistant can automatically route queries to it. The Assistant also has access to the Token API on Ethereum Mainnet, BSC, Unichain, Arbitrum-One, Optimism, and Polygon.
19+
20+
4. Is there a usage limit or quota?
21+
22+
Yes, 10 questions per hour.
23+
24+
5. What if the Assistant can't interpret my question?
25+
26+
When the Assistant fails to parse your intent (for example, ambiguous token name, missing context, or an unsupported request), it will prompt you for clarification. For instance, it might ask, “Did you mean XYZ on Ethereum or XYZ on Arbitrum?” or “Please specify a date range for this query.” If you continue to see parsing errors, check that you're using correct token symbols or specifying networks and time frames clearly.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: How To Use The Graph Assistant
3+
sidebarTitle: 'How-to Guide'
4+
---
5+
6+
## Overview
7+
8+
You type a natural language question into the chat interface, such as:
9+
10+
```yaml
11+
'On Uniswap, return the top-10 pools by total value locked in USD.'
12+
```
13+
14+
> [!IMPORTANT] All users can process 10 free queries per user per hour.
15+
16+
> [!NOTE] Disclaimer: By using Graph Assistant, you acknowledge that your requests may be logged and used to improve the performance of the underlying agents. Do not share sensitive, personal, or private information.
17+
18+
### Behind the Scenes
19+
20+
The Assistant:
21+
22+
1. Interprets your intent
23+
2. Maps it to the correct Subgraphs or Token API endpoint
24+
3. Executes optimized queries
25+
4. Returns clean, structured results
26+
27+
You don't need to write queries or understand a Subgraph's schema, you simply ask.
28+
29+
### Example Use Cases
30+
31+
**Protocol Analytics**
32+
33+
- “Compare daily active users on Aave vs. Compound in May 2025.”
34+
- “Show me the total value locked (TVL) for XYZDAO over the last quarter.”
35+
36+
**Token Insights**
37+
38+
- “What are the top 10 tokens by market cap on Ethereum right now?”
39+
- “How many XYZ did I receive between May 1 and May 15?”
40+
41+
**Historical Data Retrieval**
42+
43+
- “Fetch the token price history of XYZ for the last six months.”
44+
- “What was the average gas price on Ethereum during April?”
45+
46+
**Portfolio Monitoring**
47+
48+
- “List my wallet’s current token balances and their USD equivalents.”
49+
- “Calculate profit/loss on XYZ since xyz date.”
50+
51+
**Cross-Chain Comparison**
52+
53+
- “Show me the 7-day trading volume of XYZ on Ethereum vs. Polygon.”
54+
- “How many XYZ swaps occurred on Arbitrum yesterday?”
55+
56+
To get started follow the [quickstart](/ai-suite/graph-assistant/quick-start/) and explore its capabilities.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Introduction
3+
---
4+
5+
> [!IMPORTANT] Graph Assistant is still in **beta**. Expect breaking changes, rate limits, and potential downtime.
6+
7+
[Graph Assistant](https://thegraph.com/graph-assistant) (Beta) gives instant, code-free access to blockchain data, transforming natural language into precise, AI-powered queries without the need to code.
8+
9+
## Overview
10+
11+
[Graph Assistant](https://thegraph.com/graph-assistant) is an advanced, [agentic](/en/ai-suite/graph-assistant/faq/) easy-to-use chat interface for querying blockchain data using natural language. Unlike a basic chatbot, Graph Assistant can understand your intent, build complex queries, and execute them automatically. This gives you rich, AI-powered insights from onchain data without writing any code.
12+
13+
- **Automatically** interprets user intent, generates precise queries, executes them via The Graph's Subgraphs and Token API, and presents structured, AI-powered answers without requiring any code.
14+
- **Removes** the technical complexity found in traditional dashboards or chatbots. It provides composable insights directly from indexed Subgraphs and Token datasets.
15+
16+
## Core Features
17+
18+
| Feature | Description |
19+
| --- | --- |
20+
| **Friendly Interface** | Conversational access to blockchain data via natural language. You simply ask questions, the Assistant fetches the answer, and renders results. |
21+
| **Backed by Subgraphs** | Uses subgraphs to index protocol-specific data like transactions, events, and protocol metrics. |
22+
| **Backed by Token API** | Uses Token API for token-level information like balances, transfers, and metadata. |
23+
| **No Setup Required** | No need to configure data sources or write queries. |
24+
| **Automatic Query Building** | The Assistant performs complex queries such as fetching historical token volumes, protocol analytics, or cross-chain data and handles filtering, pagination, and joins across Subgraphs automatically. |
25+
26+
## Help Shape What's Next
27+
28+
This is in **beta**, and community input is essential. If you have ideas, questions, or run into anything unexpected, we'd love to hear from you:
29+
30+
- Join the community on [Discord](https://discord.com/invite/graphprotocol): Provide feedback and stay in the loop with other builders. You'll be able to join the `#graph-assistant` channel to share your experience directly.
31+
- Interested in going deeper? Reach out to become a dedicated beta tester so your specific use case can be better supported.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Quick Start
3+
---
4+
5+
> [!IMPORTANT] Graph Assistant is still in **beta**. Expect breaking changes, rate limits, and potential downtime.
6+
7+
This guide provides step-by-step instructions for getting started with Graph Assistant quickly.
8+
9+
## Step-by Step
10+
11+
### Step 1. Create an Account
12+
13+
Go to: [Graph Assistant](https://thegraph.com/graph-assistant)
14+
15+
- Click Sign Up (or Log In if you already have an account).
16+
- Use your Google, GitHub, X, email or wallet credentials to log in.
17+
- No additional setup is required.
18+
19+
### Step 2. Open the Assistant Chat
20+
21+
After logging in:
22+
23+
- You'll see Graph Assistant's interface.
24+
- At the bottom of the page, you will find a chat input bar. This is where you will interact with the Assistant.
25+
26+
### Step 3: Ask Your First Question
27+
28+
> [!IMPORTANT] All users can process 10 free queries per user per hour.
29+
30+
In the input bar, type a natural-language query (everyday language).
31+
32+
Example:
33+
34+
```yaml
35+
Show me the 24-hour trading volume of XYZ token on Ethereum
36+
```
37+
38+
> [!NOTE] Disclaimer: By using Graph Assistant, you acknowledge that your requests may be logged and used to improve the performance of the AI interface. Do not share sensitive, personal, or private information.
39+
40+
The Assistant will:
41+
42+
- Digest your question
43+
- Fetch onchain data using Subgraphs or the Token API
44+
- Return a clean, formatted response with the data you need

website/src/pages/en/subgraphs/mcp/_meta.js renamed to website/src/pages/en/ai-suite/subgraph-mcp/_meta.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
introduction: '',
23
claude: '',
34
cline: '',
45
cursor: '',

website/src/pages/en/subgraphs/mcp/claude.mdx renamed to website/src/pages/en/ai-suite/subgraph-mcp/claude.mdx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,7 @@
22
title: Claude Desktop
33
---
44

5-
The Subgraph [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) server enables Claude to interact directly with Subgraphs on The Graph Network. This integration allows you to find relevant Subgraphs for specific keywords and contracts, explore Subgraph schemas, and execute GraphQL queries—all through natural language conversations with Claude.
6-
7-
## What You Can Do
8-
9-
The Subgraph MCP integration enables you to:
10-
11-
- Access the GraphQL schema for any Subgraph on The Graph Network
12-
- Execute GraphQL queries against any Subgraph deployment
13-
- Find top Subgraph deployments for a given keyword or contract address
14-
- Get 30-day query volume for Subgraph deployments
15-
- Ask natural language questions about Subgraph data without writing GraphQL queries manually
5+
This guide walks you through the integration of Subgraph [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) to access Subgraph data via natural language conversations with Claude.
166

177
## Prerequisites
188

website/src/pages/en/subgraphs/mcp/cline.mdx renamed to website/src/pages/en/ai-suite/subgraph-mcp/cline.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Cline
33
---
44

5-
The Subgraph [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) server enables Cline to interact directly with Subgraphs on The Graph Network. This integration allows you to explore Subgraph schemas, execute GraphQL queries, and find relevant Subgraphs for specific contracts—all through natural language conversations with Cline.
5+
This guide walks you through the integration of Subgraph [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) to access Subgraph data through natural language conversations with Cline.
66

77
## Prerequisites
88

website/src/pages/en/subgraphs/mcp/cursor.mdx renamed to website/src/pages/en/ai-suite/subgraph-mcp/cursor.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Cursor
33
---
44

5-
The Subgraph [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) server enables Cursor to interact directly with Subgraphs on The Graph Network. This integration allows you to explore Subgraph schemas, execute GraphQL queries, and find relevant Subgraphs for specific contracts—all through natural language conversations with Cursor.
5+
This guide walks you through the integration of Subgraph [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) to access Subgraph data through natural language conversations with Cline.
66

77
## Prerequisites
88

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Subgraph MCP Introduction
3+
sidebarTitle: 'Introduction'
4+
---
5+
6+
Subgraph MCP server is an open-source implementation of [Anthropic's Model Context Protocol](https://modelcontextprotocol.io/introduction).
7+
8+
It presents The Graph's Subgraph data through a set of MCP tools that any MCP-compatible client can call. With these tools, clients can search for relevant Subgraphs, inspect GraphQL schemas, and run queries against specific deployments on The Graph Network all within a single, standardized interface.
9+
10+
The server itself does not hold a language model. Instead, it translates incoming MCP requests into Subgraph queries and returns the structured results, allowing the client's LLM to transform a natural-language prompt into actionable blockchain data.
11+
12+
Think of it as a USB-C hub: it standardizes the plug-and-play connection between AI agents and The Graph's Subgraph ecosystem.
13+
14+
## What You Can Do
15+
16+
- Access GraphQL schemas for any Subgraph on The Graph Network
17+
- Run GraphQL queries on any Subgraph deployment
18+
- Discover top Subgraph deployments by keyword or contract address
19+
- Retrieve 30-day query volumes for Subgraph deployments
20+
- Ask questions about Subgraph data without writing GraphQL manually
21+
22+
The Subgraph MCP server allows smooth integration with [Claude](/ai-suite/subgraph-mcp/claude/), [Cline](/ai-suite/subgraph-mcp/cline/), or [Cursor](/ai-suite/subgraph-mcp/cursor/), making blockchain data queries with The Graph Network a conversational experience.

website/src/pages/en/token-api/mcp/_meta.js renamed to website/src/pages/en/ai-suite/token-api-mcp/_meta.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
introduction: '',
23
claude: '',
34
cline: '',
45
cursor: '',

0 commit comments

Comments
 (0)