# How to integrate Grafbase MCP with Hermes

```json
{
  "title": "How to integrate Grafbase MCP with Hermes",
  "toolkit": "Grafbase",
  "toolkit_slug": "grafbase",
  "framework": "Hermes",
  "framework_slug": "hermes-agent",
  "url": "https://composio.dev/toolkits/grafbase/framework/hermes-agent",
  "markdown_url": "https://composio.dev/toolkits/grafbase/framework/hermes-agent.md",
  "updated_at": "2026-05-06T08:14:42.739Z"
}
```

## Introduction

Hermes is a 24/7 autonomous agent that lives on your computer or server — it remembers what it learns and evolves as your usage grows.
This guide explains the easiest and most robust way to connect your Grafbase account to Hermes. You can do this through either Composio Connect CLI or Composio Connect MCP. For personal use we recommend the CLI, but you won't go wrong with MCP either.

## Also integrate Grafbase with

- [OpenAI Agents SDK](https://composio.dev/toolkits/grafbase/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/grafbase/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/grafbase/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/grafbase/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/grafbase/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/grafbase/framework/openclaw)
- [CLI](https://composio.dev/toolkits/grafbase/framework/cli)
- [Google ADK](https://composio.dev/toolkits/grafbase/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/grafbase/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/grafbase/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/grafbase/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/grafbase/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/grafbase/framework/crew-ai)

## TL;DR

### What is Composio Connect?
Composio Connect is a consumer offering that lets anyone plug 1,000+ applications directly into their agent harness — including Hermes. It can:
- Search and load tools from relevant toolkits on-demand, reducing context usage.
- Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
- Manage app authentication end-to-end with zero manual overhead.

## Connect Grafbase to Hermes

### Integrating Grafbase with Hermes
### Using Composio Connect CLI
1. Install the Composio CLI
Run the install script directly, or paste https://composio.dev/hermes into your Hermes chat box to have it installed for you.

```bash
curl -fsSL https://composio.dev/install | bash
```

## 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.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `GRAFBASE_DELETE_API_KEY` | Delete Grafbase API Key | Tool to delete an existing API key. Use after confirming the key ID to revoke access. |
| `GRAFBASE_DELETE_AUDIT_LOG` | Delete Grafbase Audit Log | Tool to delete a specific Grafbase audit log entry. Note: As of current Grafbase public documentation, there is no documented API to delete audit logs programmatically. This action will attempt a best-effort REST DELETE to `/audit-logs/{id}` and, if unsupported or not found, it will gracefully fall back to validating connectivity with the GraphQL Management API and return a structured response instead of failing. |
| `GRAFBASE_DELETE_EXTENSION` | Delete Extension | Tool to delete an extension configuration. Use after confirming the extension_id to remove the extension. |
| `GRAFBASE_DELETE_MCP_SERVER` | Delete MCP Server | Tool to delete a Grafbase MCP server configuration by its unique ID. Use after confirming the server ID to remove an existing MCP server. |
| `GRAFBASE_DELETE_SCHEMA` | Delete Grafbase Schema | Tool to delete a Grafbase schema. Use when you need to remove a specific schema from the registry after confirming its ID. |
| `GRAFBASE_DELETE_SCHEMA_CHECK` | Delete Schema Check | Tool to delete a Grafbase schema check. Use when you need to remove a specific schema check by its ID after reviewing the registry. |
| `GRAFBASE_DISABLE_MCP` | Disable MCP server | Tool to disable the Model Context Protocol server. Use when you need to turn off MCP via API after it has been enabled. |
| `GRAFBASE_ENABLE_MCP` | Enable Grafbase MCP Server | Tool to enable the Model Context Protocol (MCP) server for a Grafbase project. Use when you need to activate MCP support; if the API endpoint is not supported, this returns guidance for enabling via configuration. |
| `GRAFBASE_GET_AUDIT_LOG` | Get Grafbase Audit Log | Tool to retrieve a specific Grafbase audit log entry. Use after confirming the audit log ID exists. |
| `GRAFBASE_GET_FEDERATED_SCHEMA` | Get Federated Schema | Tool to retrieve the composed federated graph schema. Use after deploying your federated graph when you need the full SDL. |
| `GRAFBASE_GET_SCHEMA_CHECK` | Get Grafbase Schema Check | Tool to retrieve the result of a schema check by its ID. Use when you need to inspect a specific schema check after running a check via CLI or API. |
| `GRAFBASE_GET_SUBGRAPH_SCHEMA` | Get Subgraph Schema | Tool to retrieve the GraphQL SDL of a specific subgraph. Use after confirming the subgraph name to inspect its schema. |
| `GRAFBASE_LIST_API_KEYS` | List API Keys | Tool to list all API keys for a project. Use after authenticating with a valid token to retrieve the project’s API keys. |
| `GRAFBASE_LIST_AUDIT_LOGS` | List Grafbase Audit Logs | Tool to list all audit logs for a project. Use when you need to retrieve historical events (up to 90 days). Note: As of current Grafbase public documentation, there is no documented API to list audit logs programmatically. This action will attempt a best-effort REST endpoint and gracefully fall back to returning an empty list after validating connectivity/authentication with the GraphQL Management API. |
| `GRAFBASE_LIST_EXTENSIONS` | List Extensions | Tool to list all extensions configured for a Grafbase project. Use after confirming project access when retrieving configured extensions programmatically. |
| `GRAFBASE_LIST_MCP_SERVERS` | List MCP Servers | Tool to list all MCP servers configured for a project. Use when you need to retrieve existing MCP server configurations. |
| `GRAFBASE_LIST_SCHEMA_CHECKS` | List Grafbase Schema Checks | Tool to list all Grafbase schema checks for a project. Use when you need to review past schema validation runs. |
| `GRAFBASE_LIST_SCHEMAS` | List Grafbase Schemas | Tool to list all Grafbase schemas. Use when you need to retrieve all schemas in the registry. |
| `GRAFBASE_LIST_SUBGRAPHS` | List Grafbase Subgraphs | Tool to list published subgraphs in a branch. Use when you need to retrieve endpoints of all subgraphs for a given branch. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

The Grafbase MCP server provides comprehensive access to Grafbase operations through Composio. Once connected, Hermes can perform all major Grafbase actions on your behalf using natural language commands.

## Complete Code

None listed.

## Conclusion

### Way Forward
With Grafbase connected, Hermes can now act on your behalf whenever it detects a relevant task or you ask it to.
From here, you can extend Hermes further:
- Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Hermes can do for you.
- Build workflows across tools: Once multiple apps are connected, Hermes can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
- Let it learn your patterns: The more you use Hermes, the better it gets at anticipating how you'd handle recurring tasks. Give it feedback on drafts and decisions, and it will adapt.
If you run into trouble or want to share what you've built, join the [community](https://discord.com/invite/composio) or check out the [Docs](https://docs.composio.dev?utm_source=toolkits&utm_medium=framework_template&utm_campaign=hermes&utm_content=docs) for deeper configuration options.

## How to build Grafbase MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/grafbase/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/grafbase/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/grafbase/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/grafbase/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/grafbase/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/grafbase/framework/openclaw)
- [CLI](https://composio.dev/toolkits/grafbase/framework/cli)
- [Google ADK](https://composio.dev/toolkits/grafbase/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/grafbase/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/grafbase/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/grafbase/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/grafbase/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/grafbase/framework/crew-ai)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.
- [Appveyor](https://composio.dev/toolkits/appveyor) - AppVeyor is a cloud-based continuous integration service for building, testing, and deploying applications. It helps developers automate and streamline their software delivery pipelines.
- [Backendless](https://composio.dev/toolkits/backendless) - Backendless is a backend-as-a-service platform for mobile and web apps, offering database, file storage, user authentication, and APIs. It helps developers ship scalable applications faster without managing server infrastructure.
- [Baserow](https://composio.dev/toolkits/baserow) - Baserow is an open-source no-code database platform for building collaborative data apps. It makes it easy for teams to organize data and automate workflows without writing code.
- [Bench](https://composio.dev/toolkits/bench) - Bench is a benchmarking tool for automated performance measurement and analysis. It helps you quickly evaluate, compare, and track your systems or workflows.
- [Better stack](https://composio.dev/toolkits/better_stack) - Better Stack is a monitoring, logging, and incident management solution for apps and services. It helps teams ensure application reliability and performance with real-time insights.
- [Bitbucket](https://composio.dev/toolkits/bitbucket) - Bitbucket is a Git-based code hosting and collaboration platform for teams. It enables secure repository management and streamlined code reviews.
- [Blazemeter](https://composio.dev/toolkits/blazemeter) - Blazemeter is a continuous testing platform for web and mobile app performance. It empowers teams to automate and analyze large-scale tests with ease.
- [Blocknative](https://composio.dev/toolkits/blocknative) - Blocknative delivers real-time mempool monitoring and transaction management for public blockchains. Instantly track pending transactions and optimize blockchain interactions with live data.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Grafbase MCP?

With a standalone Grafbase MCP server, the agents and LLMs can only access a fixed set of Grafbase tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Grafbase and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Hermes?

Yes, you can. Hermes fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Grafbase tools.

### Can I manage the permissions and scopes for Grafbase while using Tool Router?

Yes, absolutely. You can configure which Grafbase scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Grafbase data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
