How to integrate Grafbase MCP with Atomic Agent

Connect Atomic Agent to Grafbase MCP. Retrieve the latest audit log entry, delete a specific api key by id, and more using natural language, with authentication handled for you.

Grafbase logoGrafbase
Api Key

Grafbase is a platform for building and scaling GraphQL APIs with edge caching and unified data access. It's designed to help you deliver fast, secure, and seamless APIs—all in one place.

28 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including Grafbase.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Grafbase account. See the Atomic Agent documentation for installation instructions.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Grafbase with

How Atomic Agent connects to Grafbase

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect Grafbase to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Grafbase. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Grafbase account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the Grafbase MCP server, and what's possible with it?

The Grafbase MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, and more directly to your Grafbase account. It provides structured and secure access to your GraphQL API management, so your agent can perform actions like enabling or disabling MCP, managing API keys, retrieving schemas, and working with audit logs on your behalf.

  • Enable or disable MCP server: Instantly activate or turn off the Model Context Protocol for your Grafbase project, all by agent command.
  • API key management: Let your agent securely delete existing API keys to control and rotate access as needed.
  • Schema and federation management: Retrieve federated graph schemas or remove unwanted schemas for streamlined development workflows.
  • Audit log retrieval: Fetch specific audit log entries, giving your agent the power to surface key changes or events in your Grafbase environment.
  • Extension and server configuration cleanup: Delete extension configurations or obsolete MCP server setups to keep your backend lean and secure.

Use Grafbase from Atomic Agent

With your account connected, ask Atomic Agent to work with Grafbase in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

Every Grafbase action and event your agent gets out of the box.

Add Zitadel Redirect URI

Request addition of a Zitadel OAuth redirect in Grafbase using the authenticated context.

Assign Team Role

Tool to assign a role to a team member in Grafbase.

Delete Grafbase API Key

Delete a Grafbase API key (access token) by ID.

Delete Grafbase Audit Log

Tool to delete a specific Grafbase audit log entry.

Delete Extension

Attempt to delete a Grafbase extension configuration by its unique ID through the project API.

Delete MCP Server

Attempt to delete a Grafbase MCP server configuration by its unique ID through the project API.

Delete Grafbase Subgraph

Tool to delete a subgraph from a Grafbase federated graph.

Delete Schema Check

Query a Grafbase schema check by ID and return information about the check or an API error.

Delete Grafbase Team

Tool to delete a team from the Grafbase organization.

Disable MCP Server

Attempt to disable the Model Context Protocol (MCP) server for a Grafbase project through its API.

Enable Grafbase MCP Server

Attempt to enable MCP on a Grafbase gateway via its API, returning manual configuration guidance if the endpoint is unsupported or unreachable.

Get Grafbase Audit Log

Search accessible Grafbase organization members by user ID, name, email, or role, optionally scoped to an organization.

Get Extension by Name

Tool to retrieve a Grafbase extension by its name.

Get Extension Version By Name And Version

Tool to retrieve details of a specific Grafbase extension version by name and version.

Get Federated Schema

Retrieves the composed federated graph schema from Grafbase in SDL format.

Get Grafbase Invitation

Retrieve details of a specific Grafbase invitation by ID, including its status, email address, and creation date.

Get Notifications Inbox Messages

Tool to retrieve notifications inbox messages for the authenticated Grafbase user.

Get Grafbase Schema Check

Retrieve a Grafbase schema check by ID within an account and graph, returning its error count, subgraph name and available Git commit information.

Get Subgraph Schema

Retrieve the GraphQL SDL schema for a subgraph by name.

List API Keys

List all API keys (access tokens) for the authenticated Grafbase user.

List Grafbase Audit Logs

List Grafbase organization member-join activity derived from organization membership data, with optional organization filtering.

List Extensions

List extensions returned by available Grafbase project REST endpoints.

List MCP Servers

Check a Grafbase gateway's presumed /mcp endpoint and provide configuration guidance.

List Grafbase Schema Checks

List schema checks for a Grafbase graph.

List Grafbase Schemas

Tool to list all schemas in the Grafbase schema registry.

List Grafbase Subgraphs

List published subgraphs and their endpoint URLs across Grafbase organizations, optionally filtering by branch name.

Mark Notifications as Read

Tool to mark Grafbase notifications as read.

Remove Graph Owner

Tool to remove an owner from a Grafbase graph.

FAQ

Frequently asked questions

Start with Grafbase.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Grafbase tool your agent needs.Free to start.

Start building