Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcpgql

The GraphQL Overlord’s bridge to MCP.

mcpgql is a CLI tool and a federated bridge connecting any GraphQL endpoint directly to the Model Context Protocol (MCP) ecosystem, built upon mcp-graphql-enhanced.


Why mcpgql?

  • Zero-Config Integration: Seamlessly connect LLMs to your graph data.
  • No Environment Pollution: Unlike standard setups, no environment variables need to be declared in your claude_desktop_config.json. All configuration (endpoints, headers, mutation toggles) is handled dynamically in your terminal gateway.
  • Federated Power: Engineered to work flawlessly with mcp-remote for decentralized, multi-endpoint environments.
  • Real-time Mutations: Full support for write operations (like publishToDiscord) directly from your AI agent.

Quick Start

Run the bridge via the terminal command:

mcpgql

The interactive dialog will automatically guide you through setting up your endpoints and required environment variables:

--- Select Endpoints (Enter to confirm) ---
 [✓]  1. mcp
 [ ]  2. neo4j
--- Environment variables ---
[YES] 3. Allow Mutations
[OK] 4. Headers (Loaded from: /home/atman/headers.json)

Enter number to toggle (or Enter to proceed):

1. Terminal (HTTP GraphQL Gateway)
2. MCP Inspector (stdio)
Select mode (1 or 2): 1
[INFO] Launching with ENDPOINT=https://mcp-discord.vercel.app/api/graphiql
[DEBUG] Executing: node /home/mcp-graphql-enhanced/dist/index.js
[BOOT] Initializing schema sync for: https://mcp-discord.vercel.app/api/graphiql
[SYSTEM] Federated Bridge active on port 6274
📡 MCP Endpoint: http://localhost:6274/mcp
🎨 GraphiQL: http://localhost:6274/graphiql

Integrate into Claude Desktop with a minimal configuration:

{
  "mcpServers": {
    "mcpgql": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://localhost:6274/mcp"
      ]
    }
  }
}

Proof of Concept

  • Real-time Mutation: Successfully executed complex GraphQL mutations (publishToDiscord) directly from the Claude interface.
  • Integration Log: View the live integration proof for this session.
  • Success Status: The integration verifies node querying and response transmission with 100% precision.

About

CLI tool and federated gateway connecting GraphQL endpoints to the MCP ecosystem

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages