# How to integrate Affinda MCP with Hermes

```json
{
  "title": "How to integrate Affinda MCP with Hermes",
  "toolkit": "Affinda",
  "toolkit_slug": "affinda",
  "framework": "Hermes",
  "framework_slug": "hermes-agent",
  "url": "https://composio.dev/toolkits/affinda/framework/hermes-agent",
  "markdown_url": "https://composio.dev/toolkits/affinda/framework/hermes-agent.md",
  "updated_at": "2026-05-06T07:59:27.420Z"
}
```

## 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 Affinda 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 Affinda with

- [OpenAI Agents SDK](https://composio.dev/toolkits/affinda/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/affinda/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/affinda/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/affinda/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/affinda/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/affinda/framework/openclaw)
- [CLI](https://composio.dev/toolkits/affinda/framework/cli)
- [Google ADK](https://composio.dev/toolkits/affinda/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/affinda/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/affinda/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/affinda/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/affinda/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/affinda/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 Affinda to Hermes

### Integrating Affinda 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 Affinda MCP server, and what's possible with it?

The Affinda MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Affinda account. It provides structured and secure access to your document processing workflows, so your agent can upload files, extract data, organize workspaces, label documents, and automate annotation management on your behalf.
- AI-powered document upload and extraction: Instantly have your agent upload new documents for parsing and extract structured data from various formats using Affinda's advanced AI models.
- Workspace and collection management: Let your agent create, group, and organize documents into collections and workspaces, keeping your document processing streamlined and organized.
- Automated annotation updates: Empower your agent to batch update or modify multiple document annotations in a single request, saving you time on manual corrections.
- Document tagging and organization: Direct your agent to create tags and label documents, making it easy to categorize and quickly retrieve important files.
- Effortless cleanup and resource management: Have your agent delete unwanted documents or collections, ensuring your Affinda account stays tidy and relevant at all times.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `AFFINDA_BATCH_UPDATE_ANNOTATIONS` | Batch Update Annotations | Tool to update multiple annotations in one request. use when you need to modify parsed values or other fields across many annotations at once. |
| `AFFINDA_CREATE_COLLECTION` | Create Collection | Tool to create a new collection. use after you have a valid workspace id and want to group documents by a specific extractor within that workspace. |
| `AFFINDA_CREATE_DOCUMENT` | Create Document | Tool to upload a new document for parsing. use when you have the document file or a public url and need to extract structured data immediately. |
| `AFFINDA_CREATE_ORGANIZATION` | Create Organization | Tool to create a new organization. use when you have a unique organization name and want to group resources under it. |
| `AFFINDA_CREATE_RESTHOOK_SUBSCRIPTION` | Create RESTHook Subscription | Tool to create a new resthook subscription. use after confirming your webhook endpoint is ready to receive document event notifications. |
| `AFFINDA_CREATE_TAG` | Create Tag | Tool to create a new tag. use when you need to label documents in a specific workspace. |
| `AFFINDA_CREATE_VALIDATION_RESULT` | Create Validation Result | Tool to create a validation result. use when recording validation outcomes for a document after parsing. |
| `AFFINDA_CREATE_WORKSPACE` | Create Workspace | Tool to create a new workspace. use when you need to programmatically create a workspace container within an organization. |
| `AFFINDA_DELETE_COLLECTION` | Delete Collection | Tool to delete a specific collection by its id. use when you need to remove an unused collection. use after verifying the collection id. |
| `AFFINDA_DELETE_DOCUMENT` | Delete Document | Tool to delete a specific document by its id. use when you need to remove a document that is incorrect or no longer needed, after confirming the document id. |
| `AFFINDA_DELETE_ORGANIZATION` | Delete Organization | Tool to delete a specific organization by its id. use when you need to remove an organization after confirming its identifier. |
| `AFFINDA_DELETE_RESTHOOK_SUBSCRIPTION` | Delete Resthook Subscription | Tool to delete a specific resthook subscription by id. use after confirming the subscription identifier when the webhook is no longer needed. |
| `AFFINDA_DELETE_WORKSPACE` | Delete Workspace | Tool to delete a specific workspace by its id. use when you need to remove an unused workspace after confirming the workspace id. |
| `AFFINDA_DELETE_WORKSPACE_MEMBERSHIP` | Delete Workspace Membership | Tool to remove a user from a workspace by membership id. use after confirming the workspace membership id to revoke access. |
| `AFFINDA_GET_ALL_TAGS` | Get Tags | Tool to list all tags. use after confirming authentication to fetch tags across workspaces. |
| `AFFINDA_GET_ALL_VALIDATION_RESULTS` | Get All Validation Results | Tool to list validation results for documents. use after processing documents to inspect validation outcomes. |
| `AFFINDA_GET_ALL_WORKSPACE_MEMBERSHIPS` | Get Workspace Memberships | Tool to list all workspace memberships for the authenticated user. use when you need to see roles and access across all workspaces. |
| `AFFINDA_GET_ANNOTATIONS` | Get Annotations | Tool to retrieve a list of all annotations. use after parsing documents to list their annotations. |
| `AFFINDA_GET_COLLECTION` | Get Collection | Tool to retrieve details of a specific collection by its id. use when you need full metadata about a collection after confirming its identifier. |
| `AFFINDA_GET_COLLECTIONS` | Get Collections | Tool to retrieve a list of all collections. use when you need to list collections in your affinda workspace after authentication. |
| `AFFINDA_GET_DOCUMENT` | Get Document | Tool to retrieve details of a specific document by its id. use when you need full metadata and parsing results for a document after upload. |
| `AFFINDA_GET_DOCUMENTS` | Get Documents | Tool to retrieve a list of all documents. use when you need to list documents in your affinda workspace after authentication. |
| `AFFINDA_GET_DOCUMENT_TYPE` | Get Document Type | Tool to retrieve details of a specific document type by its id. use when you need to confirm the configuration or metadata of a document type before processing documents. |
| `AFFINDA_GET_DOCUMENT_TYPES` | Get Document Types | Tool to retrieve a list of all document types. use when you need to display or filter documents by type before processing. |
| `AFFINDA_GET_EXTRACTORS` | Get Extractors | Tool to retrieve a list of all extractors. use when you need to paginate through available extractors. |
| `AFFINDA_GET_ORGANIZATION` | Get Organization | Tool to retrieve details of a specific organization by its id. use when you need to fetch an organization's metadata after confirming its identifier. |
| `AFFINDA_GET_ORGANIZATIONS` | Get Organizations | Tool to retrieve a list of all organizations. use after authenticating to list all organizations available to the api key. |
| `AFFINDA_GET_RESTHOOK_SUBSCRIPTION` | Get Resthook Subscription | Tool to retrieve details of a specific resthook subscription by its id. use after confirming its creation to verify its settings. |
| `AFFINDA_GET_RESTHOOK_SUBSCRIPTIONS` | Get RESTHook Subscriptions | Tool to retrieve a list of all resthook subscriptions. use after authenticating to list all webhook subscriptions associated with your account. |
| `AFFINDA_GET_USAGE_BY_WORKSPACE` | Get Usage by Workspace | Tool to retrieve monthly credits consumption for a workspace. use when tracking usage over a specific period before reporting. |
| `AFFINDA_GET_WORKSPACE` | Get Workspace | Tool to retrieve details of a specific workspace by its id. use when you need full workspace metadata after confirming its identifier. |
| `AFFINDA_GET_WORKSPACE_MEMBERSHIP` | Get Workspace Membership | Tool to retrieve details of a specific workspace membership by its id. use when you need to confirm a user's role and details within a workspace after obtaining the membership identifier. |
| `AFFINDA_GET_WORKSPACES` | Get Workspaces | Tool to retrieve a list of all workspaces. use when you need to list workspaces filtered by organization and optional name. |
| `AFFINDA_UPDATE_COLLECTION` | Update Collection | Tool to update specific fields of a collection. use when you need to rename or reassign a collection after creation. |
| `AFFINDA_UPDATE_DOCUMENT` | Update Document | Tool to update specific fields of a document. use when you need to rename, reassign, or adjust expiry and storage settings after document creation. |
| `AFFINDA_UPDATE_DOCUMENT_DATA` | Update Document Data | Tool to update parsed data for a resume or job description document. use after retrieving the document when you want to correct or add parsed fields. |
| `AFFINDA_UPDATE_ORGANIZATION` | Update Organization | Tool to update specific fields of an organization. use when you need to modify an organization's name, avatar, or webhook and validation settings after creation. |
| `AFFINDA_UPDATE_RESTHOOK_SUBSCRIPTION` | Update RESTHook Subscription | Tool to update an existing resthook subscription. use after confirming the subscription identifier to modify its url, event, or activation status. |
| `AFFINDA_UPDATE_WORKSPACE` | Update Workspace | Tool to update specific fields of a workspace. use when you need to modify a workspace’s name, visibility, or document rejection policy after creation. |

## Supported Triggers

None listed.

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

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

## Complete Code

None listed.

## Conclusion

### Way Forward
With Affinda 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 Affinda MCP Agent with another framework

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

## Related Toolkits

- [Google Drive](https://composio.dev/toolkits/googledrive) - Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.
- [Google Docs](https://composio.dev/toolkits/googledocs) - Google Docs is a cloud-based word processor that enables document creation and real-time collaboration. Its seamless sharing and version history make team editing and content management a breeze.
- [Google Super](https://composio.dev/toolkits/googlesuper) - Google Super is an all-in-one suite combining Gmail, Drive, Calendar, Sheets, Analytics, and more. It gives you a unified platform to manage your digital life, boosting productivity and organization.
- [Agility cms](https://composio.dev/toolkits/agility_cms) - Agility CMS is a headless content management system for building and managing digital experiences across platforms. It lets teams update content quickly and deliver omnichannel experiences with ease.
- [Algodocs](https://composio.dev/toolkits/algodocs) - Algodocs is an AI-powered platform that automates data extraction from business documents. It delivers fast, secure, and accurate processing without templates or manual training.
- [Api2pdf](https://composio.dev/toolkits/api2pdf) - Api2Pdf is a REST API for generating PDFs from HTML, URLs, and documents using powerful engines like wkhtmltopdf and Headless Chrome. It streamlines document conversion and automation for developers and businesses.
- [Aryn](https://composio.dev/toolkits/aryn) - Aryn is an AI-powered platform for parsing, extracting, and analyzing data from unstructured documents. Use it to automate document processing and unlock actionable insights from your files.
- [Boldsign](https://composio.dev/toolkits/boldsign) - Boldsign is a digital eSignature platform for sending, signing, and tracking documents online. Organizations use it to automate agreements and manage legally binding workflows efficiently.
- [Boloforms](https://composio.dev/toolkits/boloforms) - BoloForms is an eSignature platform built for small businesses, offering unlimited signatures, templates, and forms. It simplifies digital document signing and team collaboration at a predictable, fixed price.
- [Box](https://composio.dev/toolkits/box) - Box is a cloud content management and file sharing platform for businesses. It helps teams securely store, organize, and collaborate on files from anywhere.
- [Carbone](https://composio.dev/toolkits/carbone) - Carbone is a blazing-fast report generator that turns JSON data into PDFs, Word docs, spreadsheets, and more using flexible templates. It lets you automate document creation at scale with minimal code.
- [Castingwords](https://composio.dev/toolkits/castingwords) - CastingWords is a transcription service specializing in human-powered, accurate transcripts via a simple API. Get seamless audio-to-text conversion for interviews, meetings, podcasts, and more.
- [Cloudconvert](https://composio.dev/toolkits/cloudconvert) - CloudConvert is a powerful file conversion service supporting over 200 file formats. It streamlines converting, compressing, and managing documents, media, and more, all in one place.
- [Cloudlayer](https://composio.dev/toolkits/cloudlayer) - Cloudlayer is a document and asset generation service for creating PDFs and images via API or SDKs. It lets you automate high-quality doc creation, saving dev time and reducing manual work.
- [Cloudpress](https://composio.dev/toolkits/cloudpress) - Cloudpress is a content export tool for Google Docs and Notion. It automates publishing to your favorite Content Management Systems.
- [Contentful graphql](https://composio.dev/toolkits/contentful_graphql) - Contentful graphql is a content delivery API that lets you access Contentful data using GraphQL queries. It gives you efficient, flexible ways to fetch and manage structured content for any digital project.
- [Conversion tools](https://composio.dev/toolkits/conversion_tools) - Conversion Tools is an online service for converting documents between formats such as PDF, Word, Excel, XML, and CSV. It lets you automate complex document workflows with just a few clicks.
- [Convertapi](https://composio.dev/toolkits/convertapi) - ConvertAPI is a robust file conversion service for documents, images, and spreadsheets. It streamlines programmatic format changes and lets developers automate complex workflows with a single API.
- [Craftmypdf](https://composio.dev/toolkits/craftmypdf) - CraftMyPDF is a web-based service for designing and generating PDFs with templates and live data. It streamlines document creation by automating personalized PDFs at scale.
- [Docmosis](https://composio.dev/toolkits/docmosis) - Docmosis generates PDF and Word documents from user-defined templates. It's perfect for merging data fields to quickly produce reports, invoices, and business letters.

## Frequently Asked Questions

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

With a standalone Affinda MCP server, the agents and LLMs can only access a fixed set of Affinda tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Affinda 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 Affinda tools.

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

Yes, absolutely. You can configure which Affinda 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 Affinda data and credentials are handled as safely as possible.

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