# Affinda MCP

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

Category: Developer. Connect from any SulusAssist agent at https://assist.sulus.ai/integrations/affinda-mcp/.

## Actions

- **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** (read-only): Get one data source by ID — name, schema, and key/display properties.
- **Get document** (read-only): Get one document by ID — state, workspace, document type, and basic metadata.
- **Get document extraction** (read-only): Get the extracted data for one document — raw text plus all field values.
- **Get document page images** (read-only): View a document's pages as rendered images — see the actual document, not just OCR text.
- **Get document type** (read-only): Get one document type by ID — name, organization, and counts only.
- **Get document type details** (read-only): Get a document type's full configuration — settings + counts.
- **Get field** (read-only): Get one field by ID — full settings, formatter, and relationships.
- **Get field group** (read-only): Get one field group by ID — label, position, parent document type.
- **Get integration** (read-only): Get one integration by ID — full configuration, code, and connections.
- **Get integration run** (read-only): Get one integration run by ID — full, untruncated logs and output.
- **Get usage** (read-only): Get daily credits consumption for an organization over a date range.
- **Get validation rule** (read-only): Get one validation rule by ID — prompt, enabled, fields, missing-data option.
- **Get workspace** (read-only): Get one workspace by ID — name, organization, and document counts only.
- **Get workspace details** (read-only): Get a workspace's full configuration — settings + counts.
- **List data source values** (read-only): List the rows (records) stored in a data source.
- **List data sources** (read-only): List data sources (lookup tables) defined on an organization.
- **List document splitters** (read-only): List document splitters available to an organization.
- **List document types** (read-only): List document types in an organization.
- **List documents** (read-only): List documents in a workspace with their state and basic metadata.
- **List fields** (read-only): List a document type's full field schema, grouped by field group.
- **List integration connections** (read-only): List third-party service connections in an organization.
- **List integration runs** (read-only): List recent runs for an integration, newest first.
- **List integration secrets** (read-only): List the names of secrets configured for an integration.
- **List integration versions** (read-only): List deployed-version snapshots for an integration, newest first.
- **List integrations** (read-only): List integrations in an organization.
- **List matching criteria** (read-only): List matching criteria configured on a field.
- **List model memory documents** (read-only): List the confirmed reference documents currently in a document type's model memory.
- **List organizations** (read-only): List organizations the current user belongs to.
- **List pipedream apps** (read-only): Search the catalogue of Pipedream apps available for new connections.
- **List recent field annotations** (read-only): Spot-check how one field is being extracted across recent documents.
- **List tags** (read-only): List the tags defined in a workspace.
- **List validation rules** (read-only): List validation rules attached to a document type.
- **List workspaces** (read-only): 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** (read-only): 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** (read-only): Block until every document in a workspace has finished processing.
