Affinda MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Affinda MCP or direct API to extract key data from documents, parse resumes, process invoices, and automate document workflows through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Affinda Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Affinda now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Add Tag to DocumentsTool to add a tag to multiple documents in a single operation.
Batch Update AnnotationsBatch update multiple document annotations in a single API call.
Create API UserTool to create a new API user within an organization.
Batch Create AnnotationsBatch create multiple document annotations in a single API call.
Create CollectionTool to create a new collection.
Create Data Field For CollectionTool to create a data field for a collection along with a new data point.
Create Data SourceTool to create a custom mapping data source.
Create Data Source ValueTool to add a new value to a mapping data source.
Create DocumentUpload a document to Affinda for parsing and data extraction.
Create Document TypeTool to create a new document type in the specified organization.
Create ExtractorTool to create a new extractor.
Create Document from DataCreate a document from structured resume or job description data for Search & Match.
Create IndexTool to create a new index for search and match functionality.
Create InvitationTool to create a new organization invitation.
Create Job Description SearchSearch through parsed job descriptions using custom criteria or resume matching.
Create Job Description Search Embed URLTool to create and return a signed URL for the embeddable job description search tool.
Create OrganizationTool to create a new organization.
Create RESTHook SubscriptionTool to create a new RESTHook subscription.
Create Resume SearchTool to search through parsed resumes using three methods: match to a job description, match to a resume, or custom criteria.
Create Resume Search Embed URLTool to create and return a signed URL for the embeddable resume search tool.
Create TagCreates a new tag in the specified workspace.
Create Validation ResultCreate a validation result for document annotations in Affinda.
Batch Create Validation ResultsBatch create multiple validation results for document annotations in a single API call.
Create WorkspaceTool to create a new workspace.
Create Workspace MembershipTool to add a user to a workspace by creating a membership.
Batch Delete AnnotationsBatch delete multiple document annotations in a single API call.
Delete CollectionPermanently delete a collection from Affinda by its identifier.
Delete Data SourcePermanently delete a mapping data source from the database by its identifier.
Delete Data Source ValueTool to delete a specific value from a mapping data source.
Delete DocumentTool to delete a specific document by its ID.
Delete Document TypeTool to permanently delete a document type by its identifier.
Delete IndexTool to permanently delete an index from Affinda by its name.
Delete InvitationTool to delete an invitation by its identifier.
Delete OrganizationPermanently deletes an organization from Affinda.
Delete Resthook SubscriptionTool to delete a specific resthook subscription by ID.
Delete TagPermanently delete a tag from Affinda by its ID.
Delete Validation ResultsDelete multiple validation results in a single API call.
Delete WorkspaceTool to delete a specific workspace by its ID.
Delete Workspace MembershipTool to remove a user from a workspace by membership ID.
Get All API UsersTool to retrieve a list of all API users.
Get All Document SplittersTool to get a list of all document splitters.
Get All InvitationsTool to retrieve all invitations you created or sent to you.
Get Organization MembershipsRetrieve all organization memberships across the account.
Get TagsTool to list all tags.
Get All Validation ResultsTool to list validation results for documents.
Get Workspace MembershipsRetrieve all workspace memberships across the account.
Get AnnotationsRetrieves all annotations for a specific document.
Get CollectionTool to retrieve details of a specific collection by its ID.
Get CollectionsTool to retrieve a list of all collections.
Get Data SourceTool to retrieve details of a specific mapping data source by its identifier.
Get Data Source ValueTool to retrieve a specific value from a mapping data source.
Get Data Source ValuesTool to retrieve all values from a mapping data source.
Get DocumentRetrieve full details and parsed data for a specific document by its identifier.
Get Document RedactedTool to retrieve the redacted version of a document as a PDF file.
Get DocumentsTool to retrieve a list of all documents.
Get Document SplitterTool to retrieve details of a specific document splitter by its identifier.
Get Document TypeTool to retrieve details of a specific document type by its ID.
Get Document Type JSON SchemaTool to generate a JSON schema from a document type by its identifier.
Get Document Type Pydantic ModelsTool to generate Pydantic model code from a document type's schema.
Get Document TypesRetrieve all document types accessible to the authenticated user.
Get ExtractorTool to retrieve detailed information about a specific extractor by its identifier.
Get ExtractorsRetrieve all extractors available for an organization.
Get Index DocumentsTool to retrieve all indexed documents for a specific index.
Get InvitationTool to retrieve details of a specific organization invitation by its identifier.
Get Job Description Search ConfigTool to get the configuration for the logged in user's embeddable job description search tool.
Get MappingTool to retrieve a specific mapping by its identifier.
Get OrganizationTool to retrieve details of a specific organization by its ID.
Get Organization MembershipTool to retrieve details of a specific organization membership by its ID.
Get OrganizationsRetrieves all organizations accessible to the authenticated user.
Get Resthook SubscriptionTool to retrieve details of a specific resthook subscription by its ID.
Get RESTHook SubscriptionsTool to retrieve a list of all RESTHook subscriptions.
Get TagTool to retrieve details of a specific tag by its ID.
Get Usage by WorkspaceRetrieves monthly document processing usage statistics for a specific workspace.
Get WorkspaceTool to retrieve details of a specific workspace by its ID.
Get Workspace MembershipTool to retrieve details of a specific workspace membership by its ID.
Get WorkspacesTool to retrieve a list of all workspaces.
List Data PointsTool to retrieve all data points.
List Data SourcesTool to retrieve the list of all custom mapping data sources.
List IndexesTool to retrieve a list of all search indexes.
List MappingsTool to retrieve the list of all custom data mappings.
List Occupation GroupsTool to retrieve the list of searchable occupation groups.
List Resume Search ConfigTool to get the configuration for the logged in user's embeddable resume search tool.
List Resume Search Job Title SuggestionsTool to get job title suggestions based on provided job title(s).
List Resume Search Skill SuggestionsTool to get skill suggestions based on provided skills.
Remove Tag from DocumentsRemove a tag from multiple documents in a single batch operation.
Replace Data Source ValuesTool to completely replace all values in a mapping data source.
Split Document PagesSplit a document into multiple documents by dividing its pages.
Update AnnotationTool to update data of a single annotation in Affinda.
Update CollectionTool to update specific fields of a collection.
Update Data Field For CollectionTool to update a data field configuration for a collection's data point.
Update Data Source ValueTool to update an existing value in a mapping data source.
Update DocumentTool to update specific fields of a document.
Update Document DataUpdate parsed data for a resume or job description document in Affinda.
Update Document TypeTool to update a document type by its identifier.
Update ExtractorTool to update specific fields of an extractor.
Update IndexTool to update the name of an existing search index.
Update InvitationTool to update an organization invitation's role.
Update Job Description Search ConfigTool to update the configuration for the logged in user's embeddable job description search tool.
Update MappingTool to update a specific mapping's settings.
Update OrganizationTool to update specific fields of an organization.
Update Organization MembershipTool to update an organization membership's role.
Update RESTHook SubscriptionTool to update an existing RESTHook subscription.
Update Resume Search ConfigTool to update the configuration for the logged in user's embeddable resume search tool.
Update TagTool to update data of a tag.
Update WorkspaceTool to update specific fields of a workspace.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Affinda tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Extract company names from this invoice PDF')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Affinda Integration

  • Supports both Affinda MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Affinda data

Managed Auth

  • Built-in API key handling with secure storage by Composio
  • Central place to manage, scope, and revoke Affinda access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Affinda
  • Scoped, least privilege access to Affinda resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Affinda with Composio?

Yes, Affinda requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.