fotoetienne

gqai

Community fotoetienne
Updated

Turn any GraphQL endpoint into a set of MCP tools

gqai

graphql โ†’ ai

gqai is a lightweight proxy that exposes GraphQL operations as Model Context Protocol (MCP) tools for AI models like ChatGPT. It lets you define tools using regular GraphQL queries/mutations and run them locally or expose them over HTTP.

๐Ÿ”Œ Powered by your GraphQL backend โš™๏ธ Driven by .graphqlrc.yml + plain .graphql files ๐Ÿง  Model-ready inputs/outputs๐Ÿ“ Built in Go

โœจ Features

  • ๐Ÿงฐ Run GraphQL operations as tools via CLI
  • ๐ŸŒ Serve tools via HTTP for AI agents
  • ๐Ÿ—‚ Automatically discover operations from .graphqlrc.yml
  • ๐Ÿงพ Tool metadata compatible with OpenAI function calling / MCP

๐Ÿ› ๏ธ Installation

go install github.com/fotoetienne/gqai@latest

๐Ÿš€ Quick Start

  1. Create a .graphqlrc.yml:
schema: "https://graphql.org/graphql/"
documents: "operations"

This file tells gqai where to find your GraphQL schema and operations.

Note: The schema also tells gqai where to execute the operations. This must be a live server rather than a static schema file

  1. Write a GraphQL operation (operations/getAllFilms.graphql):
query getAllFilms {
  allFilms {
    films {
      title
      episodeID
    }
  }
}
  1. Run it via CLI:
gqai run getAllFilms

๐ŸŒ HTTP Server

Run a local server that exposes your tools via HTTP:

gqai serve

Call the tools via HTTP POST requests:

curl -X POST http://localhost:8080/tools/call  -d '{"toolName": "getAllFilms"}'

๐Ÿ“ฆ Tool Metadata

Auto-generated tool specs for each operation, so you can plug into any LLM that supports tool use.

๐Ÿค– Why gqai?

gqai makes it easy to turn your GraphQL backend into a model-ready tool layer โ€” no wrappers, no extra infra. Just define your operations and let AI call them.

๐Ÿงช Roadmap

  • CLI tool runner

  • HTTP server mode (gqai serve)

  • Tool metadata generation

  • JSON Schema validation

  • Plug-and-play with OpenAI, Fireworks, etc.

๐Ÿ“œ License

MIT โ€” fork it, build on it, model all the things.

๐Ÿ‘‹ Author

Made with โค๏ธ and ๐Ÿค–vibes by Stephen Spalding

MCP Server ยท Populars

MCP Server ยท New

    AgriciDaniel

    WP MCP Ultimate

    WordPress MCP Ultimate โ€” Full MCP server with 58 WordPress abilities. Connect WordPress to any AI via Model Context Protocol.

    Community AgriciDaniel
    chrisryugj

    Korean DART MCP

    OpenDART ์ „์ž๊ณต์‹œMCP | 83๊ฐœ API โ†’ 15 MCP ๋„๊ตฌ. ๊ณต์‹œยท์žฌ๋ฌดยท์ง€๋ถ„ยทXBRL + ๋ฒ„ํ•๊ธ‰ ์• ๋„๋ฆฌ์ŠคํŠธ ํ”„๋ ˆ์ž„(๋‚ด๋ถ€์ž ์‹œ๊ทธ๋„ยทํšŒ๊ณ„ ๋ฆฌ์Šคํฌยทํ€„๋ฆฌํ‹ฐ ์ฒดํฌ๋ฆฌ์ŠคํŠธ) + HWP/PDF ์ฒจ๋ถ€ ๋งˆํฌ๋‹ค์šดํ™” | 83 Korean DART disclosure APIs โ†’ 15 MCP tools with Buffett-grade analyst frames

    Community chrisryugj
    PDBeurope

    PDBe MCP Servers

    PDBe MCP Servers integrate Protein Data Bank Europe resources with LLMs via Model Context Protocol. Provides seamless access to protein structure data through API tools and graph database schema assistance for intelligent Cypher query generation, bridging structural biology and AI research.

    Community PDBeurope
    illscience

    Vibe Debug

    CLI debugger that lets coding agents inspect live Python runtime state, with optional MCP integration.

    Community illscience
    Edison-Watch

    OpenEdison ๐Ÿ”’โšก๏ธ

    ๐Ÿ” Firewall Your Data, Control Agents. Prevent MCP data exfiltration. Gain visibility into AI's interactions with your data / systems of record / existing software. https://discord.gg/tXjATaKgTV

    Community Edison-Watch