How to connect Affinda MCP to Claude

Connect Claude Web, Desktop and Cowork to Affinda MCP. List document types in your affinda workspace, extract fields from an uploaded resume, and more using natural language, with authentication handled for you.

Affinda MCP logoAffinda MCP
Dcr Oauth

Affinda MCP is a hosted document intelligence service for extracting and validating data. It also helps teams manage Affinda workspaces, document types, fields, and integrations.

85 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your Affinda account to Claude via Composio Connect, enabling it to list document types in your Affinda workspace, extract fields from an uploaded resume, validate extracted invoice data against fields, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

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

Also integrate Affinda MCP with

Connecting Affinda to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your Affinda account

Back in Claude, ask it to connect to Affinda or give it any Affinda-related task.

For example, ask Claude to:

  • "List document types in your Affinda workspace"
  • "Extract fields from an uploaded resume"
  • "Validate extracted invoice data against fields"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your Affinda account is ready to use.

What is the Affinda Claude Connector, 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 document extraction, validation, and workspace configuration, so your agent can retrieve document details, inspect extracted data and page images, validate documents, and manage Affinda workspaces on your behalf.

  • Document extraction and review: Have your agent retrieve document details, read extracted text and field values, and view rendered page images.
  • Document validation: Direct your agent to create validation rules, run them against documents, review results, and confirm documents that have passed review.
  • Workspace and document type setup: Let the agent create workspaces and document types, assign document types to workspaces, and configure fields and field groups.
  • Data sources and matching: Instruct your agent to create data sources, add or remove lookup values, and create matching criteria for document fields.
  • Document organization and integrations: Have your agent create and manage workspace tags, apply tags to documents, archive documents, and configure Affinda integrations and connections.

Troubleshooting

1. Why does Claude not use the Composio connector for Affinda?

The connector can show as connected, but Claude must use it in each Affinda conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to Affinda again.

2. Why does Claude show an MCP server error before Affinda connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Affinda.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect Affinda.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the Affinda authorization link not work?

The Composio connector is one server. Your Affinda account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the Affinda connection.
  • Composio creates a fresh Affinda authorization link.
  • Open that link in your browser and finish the Affinda sign-in.

4. Why do Affinda actions fail after they worked before?

The Affinda connection can expire or lose permission.

  • Ask Claude to inspect the Affinda connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the Affinda account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in Affinda.
  • If the action still fails with a permission error, check that the connected account has that permission in Affinda itself.

5. How do I switch to a different Affinda account?

Claude can manage the Affinda connection for you.

  • Ask Claude to disconnect or delete the current Affinda account.
  • Ask Claude to connect Affinda again.
  • Open the new Composio authorization link for Affinda.
  • Sign in with the other Affinda account in the browser.
  • After the account connects, ask Claude to retry the Affinda task.

6. Why is my Affinda connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Affinda connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If Affinda tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Affinda.
TOOLS

Supported Tools

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

Add connection to integration

Attach an existing service connection to an integration.

Add tag to documents

Apply an existing tag to one or more documents.

Archive documents

Move documents to ``archived`` state.

Assign document type to workspace

Make a document type available for use in a workspace.

Bulk create data source values

Append many new rows to a data source in one call.

Bulk create fields

Create many fields on a document type in one call.

Confirm documents

Mark documents as validated, moving them from ``review`` to ``validated``.

Create api token

Create a new long-lived Affinda API key for the current user.

Create connect token

Mint an OAuth connect token + URL so the user can authorise a service.

Create data source

Create an empty data source (lookup table) in an organization.

Create data source value

Add one new row to a data source.

Create document type

Create a new document type (extraction template) in an organization.

Create field

Create a single field on a document type.

Create field group

Create a field group (heading/section) on a document type.

Create integration

Create a new integration in an organization.

Create matching criterion

Add a matching criterion to a field with an attached data source.

Create recruit workspace

Create a fully-configured Recruitment workspace in one call.

Create tag

Create a new tag in a workspace.

Create validation rule

Create a validation rule for a document type.

Create validation run

Run a validation rule against a document and refresh its results.

Create workspace

Create a new workspace with chosen processing settings.

Delete data source

Delete a data source and every row it contains.

Delete data source value

Delete one row from a data source by its key.

Delete document type

Delete a document type permanently.

Delete field

Delete a single field from a document type.

Delete field group

Delete a field group (heading/section) from a document type.

Delete integration

Permanently delete an integration.

Delete integration secret

Permanently delete a secret.

Delete matching criterion

Delete a matching criterion from a field.

Delete tag

Delete a tag from its workspace.

Delete validation rule

Delete a validation rule from a document type.

Deploy integration version

Snapshot the integration's current code as a new version and deploy it.

Get data source

Get one data source by ID — name, schema, and key/display properties.

Get document

Get one document by ID — state, workspace, document type, and basic metadata.

Get document extraction

Get the extracted data for one document — raw text plus all field values.

Get document page images

View a document's pages as rendered images — see the actual document, not just OCR text.

Get document type

Get one document type by ID — name, organization, and counts only.

Get document type details

Get a document type's full configuration — settings + counts.

Get field

Get one field by ID — full settings, formatter, and relationships.

Get field group

Get one field group by ID — label, position, parent document type.

Get integration

Get one integration by ID — full configuration, code, and connections.

Get integration run

Get one integration run by ID — full, untruncated logs and output.

Get usage

Get daily credits consumption for an organization over a date range.

Get validation rule

Get one validation rule by ID — prompt, enabled, fields, missing-data option.

Get workspace

Get one workspace by ID — name, organization, and document counts only.

Get workspace details

Get a workspace's full configuration — settings + counts.

List data sources

List data sources (lookup tables) defined on an organization.

List data source values

List the rows (records) stored in a data source.

List documents

List documents in a workspace with their state and basic metadata.

List document splitters

List document splitters available to an organization.

List document types

List document types in an organization.

List fields

List a document type's full field schema, grouped by field group.

List integration connections

List third-party service connections in an organization.

List integration runs

List recent runs for an integration, newest first.

List integrations

List integrations in an organization.

List integration secrets

List the names of secrets configured for an integration.

List integration versions

List deployed-version snapshots for an integration, newest first.

List matching criteria

List matching criteria configured on a field.

List model memory documents

List the confirmed reference documents currently in a document type's model memory.

List organizations

List organizations the current user belongs to.

List pipedream apps

Search the catalogue of Pipedream apps available for new connections.

List recent field annotations

Spot-check how one field is being extracted across recent documents.

List tags

List the tags defined in a workspace.

List validation rules

List validation rules attached to a document type.

List workspaces

List workspaces in an organization.

Populate fields from documents

Infer and create the field schema for a document type from sample documents.

Reassign document type

Reassign documents to a different document type in the same workspace.

Reject documents

Move documents to ``rejected`` state.

Remove connection from integration

Detach a service connection from an integration.

Remove tag from documents

Take a tag off one or more documents.

Revert integration version

Roll an integration back to a previous version and redeploy it.

Run integration

Execute an integration against one document as a test run.

Set integration secret

Create or update a secret on an integration.

Test connection

Verify a service connection's credentials are still valid.

Update data source

Update top-level settings on a data source (name, key, display property).

Update data source value

Update one row in a data source by its key — partial merge.

Update document type

Update one or more settings on an existing document type.

Update field

Update one or more settings on an existing field.

Update integration

Update one or more settings — including code — on an integration.

Update matching criterion

Update settings on an existing matching criterion.

Update organization

Rename an organization.

Update tag

Rename a tag.

Update validation rule

Update one or more settings on an existing validation rule.

Update workspace

Update one or more settings on an existing workspace.

Wait for document processing

Block until every document in a workspace has finished processing.

FRAMEWORKS

How to build Affinda MCP Agent with another framework

FAQ

Frequently asked questions

Start with Affinda MCP.It takes 30 seconds.

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

Start building