# Graphql

> Graphql is an open-source MCP server. Turn any GraphQL API into MCP tools. Zero config, zero code. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/docat0209/mcp-graphql
- **MCP Registry name:** io.github.Docat0209/graphql
- **Listing updated:** 2026-11-13

## About

Turn any GraphQL API into MCP tools. Zero config, zero code.

## Install

### Claude Code (Terminal)

```sh
claude mcp add graphql -- npx -y graphql-to-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "graphql": {
      "command": "npx",
      "args": [
        "-y",
        "graphql-to-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "graphql": {
      "command": "npx",
      "args": [
        "-y",
        "graphql-to-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "graphql": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "graphql-to-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "graphql": {
      "command": "npx",
      "args": [
        "-y",
        "graphql-to-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "graphql": {
      "command": "npx",
      "args": [
        "-y",
        "graphql-to-mcp"
      ]
    }
  }
}
```

## FAQ

### Is Graphql free?

Yes. Graphql is open source, so you can use and self-host it for free.

### How do I add Graphql to Claude Code?

Run this command in your terminal: claude mcp add graphql -- npx -y graphql-to-mcp

---
Source: https://ai-powered.com/mcp/graphql
