Grafbase MCP command

Start an MCP server for a given GraphQL API:

Usage:

grafbase mcp <url>

Options:

  • -H, --header <HEADER>: Add a header to the GraphQL requests
  • -s, --schema <SCHEMA>: GraphQL schema to use instead of relying on introspection
  • -p, --port <PORT>: Port to listen on
  • --execute-mutations: Grant this MCP server the ability to execute mutations