# GraphQL Agent

Ask SubQuery is an AI-powered GraphQL Agent for exploring SubQuery projects and Subgraphs. Ask questions in natural language about indexed blockchain data. The agent performs schema introspection and…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add SubQuery-Network/graphql-agent

# Browse available tools
npx -y @smithery/cli@latest tool list SubQuery-Network/graphql-agent

# Get full schema for a tool
npx -y @smithery/cli@latest tool get SubQuery-Network/graphql-agent graphql_agent

# Call a tool
npx -y @smithery/cli@latest tool call SubQuery-Network/graphql-agent graphql_agent '{}'
```

## Direct MCP Connection

Endpoint: `https://graphql-agent--subquery-network.run.tools`

**Required config:**
- `api_key` (query) — Ask SubQuery API Key
- `endpoint` (query) — The GraphQL endpoint URL to connect to

## Tools (1)

- `graphql_agent` — Ask questions about provided graphql project

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get SubQuery-Network/graphql-agent <tool-name>
```

## Prompts (3)

- `analyze_schema` (focus) — Analyze the GraphQL schema structure and relationships
- `query_examples` (entity) — Get example queries for common use cases
- `data_insights` (metric) — Get insights about the indexed data
