otheroauth2

Affinda MCP

Extract and validate data from documents and manage Affinda workspaces, document types, fields and integrations through Affinda's hosted MCP server.

Integration

Vendor
Affinda MCP
Category
other
Auth
OAUTH2
Tools
50
Composio slug
affinda_mcp

Tools

  • Add connection to integration

    Attach an existing service connection to an integration. Use this once the integration is created and the user has an authenticated connection for the target service: it gives the integration's Lambda code permission to call that service v

  • Add tag to documents

    Apply an existing tag to one or more documents. Use this to label documents — e.g. "tag these three invoices as Urgent". Documents that already carry the tag are unaffected (the operation is idempotent). All documents must belong to the sa

  • Archive documents

    Move documents to ``archived`` state. Use this to clear processed documents out of the active list without rejecting them — e.g. "archive last quarter's invoices". Archived documents stay searchable and retrievable but are filtered out of

  • Assign document type to workspace

    Make a document type available for use in a workspace. Use this immediately after creating a document type while the user is on a workspace, or whenever the user wants an existing type to be usable in a different workspace. After assignmen

  • Bulk create data source values

    Append many new rows to a data source in one call. Use this whenever the user provides more than one row to add — pasted lists, parsed CSV/JSON content, multi-row asks. Validation runs per-row before any save (missing key, duplicate within

  • Bulk create fields

    Create many fields on a document type in one call. Use this whenever the user describes more than one field they want to add (e.g. "create invoiceNumber, invoiceDate, totalAmount"), or when populating an existing document type from a user

  • Confirm documents

    Mark documents as validated, moving them from ``review`` to ``validated``. Use this when the user has reviewed extracted values and wants to sign off on a batch — e.g. "confirm these five invoices". Depending on the workspace's model-memor

  • Create api token

    Create a new long-lived Affinda API key for the current user. Returns the key exactly once — there is no way to retrieve it again, so surface it to the user immediately and tell them to save it. Each user can hold at most three keys. If t

  • Create connect token

    Mint an OAuth connect token + URL so the user can authorise a service. Use this when ``list_integration_connections`` shows no usable connection for the service the user wants. The returned ``connect_link_url`` is presented to the user (Af

  • Create data source

    Create an empty data source (lookup table) in an organization. Use this to set up a new enum-style lookup the user will populate afterwards — typical scenarios are "create a Suppliers list", "I need a Currencies data source", or any net-ne

  • Create data source value

    Add one new row to a data source. Use this for conversational, one-at-a-time additions: "add supplier ACME", "append currency JPY". Fails with ``duplicate_key`` if the row's key collides with an existing row — switch to ``update_data_sourc

  • Create document type

    Create a new document type (extraction template) in an organization. Use this for any net-new document category the user wants to extract: Invoice, Purchase Order, Bank Statement, Contract, etc. A document type holds the field schema and v

  • Create field

    Create a single field on a document type. Use this when the user explicitly names ONE field they want extracted (e.g. "add a Vendor Email field"), or when adding a child field under an existing ``group``/``table`` parent. For multiple fiel

  • Create field group

    Create a field group (heading/section) on a document type. Use this when the user wants to organise fields into named sections in the UI (e.g. "Header", "Line Items", "Payment Details"). Field groups are purely visual — they have no effect

  • Create integration

    Create a new integration in an organization. Use this for any net-new integration: a customer wants documents to fan out to Google Sheets, Slack, Salesforce, etc. The integration is created with no Python code and no attached connections.

  • Create matching criterion

    Add a matching criterion to a field with an attached data source. Use this to refine or extend how extracted values get mapped to data source records — typical scenarios are adding a second matching path (e.g. exact-match a code AND fuzzy-

  • Create recruit workspace

    Create a fully-configured Recruitment workspace in one call. Use this whenever the user is doing recruitment, hiring, candidate search, resume parsing, CV summarisation, or job-description analysis. It creates a "Recruitment" workspace pre

  • Create tag

    Create a new tag in a workspace. Use this when the user wants a new label to organise documents — e.g. "create an Urgent tag", "add a tag for Q3 invoices". The tag starts with no documents attached; apply it with ``add_tag_to_documents``.

  • Create validation rule

    Create a validation rule for a document type. Use this to add a new business-logic check (cross-field, format, range, required, etc.) once you have confirmed via ``list_validation_rules`` that no existing rule already covers the requiremen

  • Create validation run

    Run a validation rule against a document and refresh its results. Use this immediately after ``create_validation_rule`` or ``update_validation_rule`` so the user sees fresh validation results in the UI without manually re-validating each d

  • Create workspace

    Create a new workspace with chosen processing settings. Use this for any net-new workspace: a customer onboarding, an additional document category, or a sandbox. A workspace groups documents that share processing rules — OCR mode, splittin

  • Delete data source
    destructive

    Delete a data source and every row it contains. Use this only when the user explicitly wants the entire lookup table gone — "delete the Suppliers data source", "remove this list". Any fields that referenced the data source lose the associa

  • Delete data source value
    destructive

    Delete one row from a data source by its key. Use this for conversational single-row removal: "remove supplier ACME", "drop the JPY currency entry". Fails with ``not_found`` if no row matches ``key``. To remove the entire data source (all

  • Delete document type
    destructive

    Delete a document type permanently. Use this when the user wants to remove a document type entirely from their organization. Destructive: all fields, field groups, and validation rules attached to the type are removed with it. By default d

  • Delete field
    destructive

    Delete a single field from a document type. Use this when the user wants to remove one field they no longer want extracted, or to drop a field before recreating it under a different parent (the only safe way to "move" a field — direct ``pa

  • Delete field group
    destructive

    Delete a field group (heading/section) from a document type. Use this when the user wants to remove a section heading. Move any fields you want to keep into another group first via ``update_field`` with ``field_group_id`` — fields left beh

  • Delete integration
    destructive

    Permanently delete an integration. Use this when the user wants to remove an integration entirely. Code, versions, run history, and connection links are dropped together. This is destructive and not recoverable — confirm intent before call

  • Delete integration secret
    destructive

    Permanently delete a secret. Removes both the database record and the Lambda environment variable. Use this when a credential is no longer needed (e.g. the user rotated to a different service, or the integration's auth model changed to Pip

  • Delete matching criterion
    destructive

    Delete a matching criterion from a field. Use this to remove an unwanted lookup path — e.g. dropping a redundant fuzzy match when an exact-match criterion is enough. Removing the last criterion on a field will leave its attached data sourc

  • Delete tag
    destructive

    Delete a tag from its workspace. Use this only when the user explicitly wants the tag gone — e.g. "delete the Urgent tag". The tag is removed from every document that carried it; the documents themselves are untouched. To take the tag off

  • Delete validation rule
    destructive

    Delete a validation rule from a document type. Use this when the user wants to remove a rule entirely. If the user only wants to disable a rule temporarily, prefer ``update_validation_rule`` with ``enabled=False`` — disabled rules can be r

  • Deploy integration version

    Snapshot the integration's current code as a new version and deploy it. Call this immediately after every successful ``update_integration`` that changed ``python_code`` — it MUST be the next tool call. Code saved on the integration is not

  • Get data source

    Get one data source by ID — name, schema, and key/display properties. Use this when you already know the ``data_source_id`` and need its metadata: typically to read ``key_property`` before adding/updating rows, to inspect the schema before

  • Get document

    Get one document by ID — state, workspace, document type, and basic metadata. Use this when you already have a ``document_id`` and need a lightweight summary, e.g. to confirm a document exists, check its processing state, or look up which

  • Get document extraction

    Get the extracted data for one document — raw text plus all field values. Use this to review how a specific document was extracted: every field value with its confidence score, preserving nested structure (groups, tables). Typical scenario

  • Get document page images

    View a document's pages as rendered images — see the actual document, not just OCR text. Use this when the visual appearance of the document matters and text alone is ambiguous: layout questions, checkboxes and selection marks, signatures,

  • Get document type

    Get one document type by ID — name, organization, and counts only. Use this when you already know the ``document_type_id`` and need a lightweight summary, e.g. to confirm the type exists or display headline counts. Returns ``data=null`` wi

  • Get document type details

    Get a document type's full configuration — settings + counts. Use this whenever you need to read or reason about document-type settings: validation-blocking confirmation, the redact button, and auto-refresh of validation results. Typical s

  • Get field

    Get one field by ID — full settings, formatter, and relationships. Use this when you already know the ``field_id`` and need details that ``list_fields`` doesn't surface compactly (formatter config, transformation config, attached data sour

  • Get field group

    Get one field group by ID — label, position, parent document type. Use this when you already know the ``field_group_id`` and want a direct lookup. Most callers should prefer ``list_fields``, which returns every group on a document type alo

  • Get integration

    Get one integration by ID — full configuration, code, and connections. Use this whenever you need to read the current Python code or the attached connections. Critical before calling ``update_integration`` with ``python_code``: that field

  • Get integration run

    Get one integration run by ID — full, untruncated logs and output. Use this when diagnosing a failing integration. ``list_integration_runs`` truncates logs to 10,000 characters, which often hides the actual error; this tool returns the com

  • Get usage

    Get daily credits consumption for an organization over a date range. Use this to answer "how many credits have we used?", to break usage down by day, or to attribute spend to one workspace or document type. Returns a ``total`` plus a per-d

  • Get validation rule

    Get one validation rule by ID — prompt, enabled, fields, missing-data option. Use this when you already know the ``validation_rule_id`` and need to inspect or quote the existing prompt before patching it via ``update_validation_rule``. Ret

  • Get workspace

    Get one workspace by ID — name, organization, and document counts only. Use this when you already know the workspace_id and need a lightweight summary, e.g. to confirm the workspace exists or to display headline counts. Returns ``data=null

  • Get workspace details

    Get a workspace's full configuration — settings + counts. Use this whenever you need to read or reason about workspace settings: OCR mode, document splitting, classification, model-memory strategy, duplicate rejection, and validation flags

  • List data sources

    List data sources (lookup tables) defined on an organization. Use this to discover the ``data_source_id`` for downstream tools, or to show the user what lookup tables already exist in their org. Data sources are organization-scoped enum-st

  • List data source values

    List the rows (records) stored in a data source. Use this to inspect the actual contents of a lookup table — typical scenarios are "what suppliers are in this list?", finding the row to update or delete by its key, or sanity-checking a rec

  • List documents

    List documents in a workspace with their state and basic metadata. Use this to find documents by workspace, narrow by state, or run a full-text search across file names and extracted text — for example, "show me documents in review" or "fi

  • List document splitters

    List document splitters available to an organization. Use this whenever you need a ``document_splitter_id`` to pass into ``create_workspace`` or ``update_workspace`` with splitting enabled. The list includes global splitters (notably "Gene

Setup

  1. Create or open a Switchy Project.
  2. Open Integrations and connect Affinda MCP.
  3. Authorise through oauth2. Switchy stores the connection against your org.
  4. Everyone in the Project can now @-mention the Affinda MCP tools in chat.

What teammates see: by default, memories from Affinda MCP are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Projects have used this MCP together with a given model.

How Switchy teams use it

Not enough Projects yet to publish anonymised usage stats (we require ≥ 50 Projects per week).

Starter prompts

Starter prompts for this model will land here soon.

More other MCPs

See all other MCPs →

Data last verified 12 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.