> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Airparser MCP server

The Airparser MCP connector routes your AI agent's tool calls to Airparser's own MCP server through Scalekit. Each user signs in to Airparser once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 17 tools.

**Authentication:** OAuth2.1/DCR
**Categories:** Files & Documents, AI, Automation
**Tools:** 17: 8 read, 9 write, 0 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=AIRPARSERMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Airparser MCP connection

   In **AgentKit > Connections**, create an Airparser MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Airparser MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'airparsermcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Airparser MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'airparsermcp_get_extraction_schema_format_guide',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "airparsermcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Airparser MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="airparsermcp_get_extraction_schema_format_guide",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'airparsermcp_get_document',
  toolInput: {
    document_id: '<document_id>',
  },
  connector: 'airparsermcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="airparsermcp_get_document",
    tool_input={
        "document_id": "<document_id>",
    },
    connection_name="airparsermcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `airparsermcp_get_document`

Get Document · Read-only

Get one Airparser document with parsed JSON for the authenticated user.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `document_id` (`string`, required): Airparser document id.

Example input: `{"document_id":"<document_id>"}`

### `airparsermcp_get_extraction_schema`

Get Extraction Schema · Read-only

Get the current extraction schema configured for an Airparser inbox.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"inbox_id":"<inbox_id>"}`

### `airparsermcp_get_extraction_schema_format_guide`

Get Extraction Schema Format Guide · Read-only

Get a compact guide to the native Airparser extraction schema format, including field types and examples.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `airparsermcp_get_inbox`

Get Inbox · Read-only

Get a single Airparser inbox, including extraction schema details.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"inbox_id":"<inbox_id>"}`

### `airparsermcp_get_postprocessing`

Get Post-Processing Configuration · Read-only

Get the current Airparser post-processing configuration for an inbox, including whether it is enabled and the saved Python code.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"inbox_id":"<inbox_id>"}`

### `airparsermcp_get_postprocessing_runtime_rules`

Get Post-Processing Runtime Rules · Read-only

Get the runtime constraints and allowed imports for Airparser post-processing Python code.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `airparsermcp_list_documents`

List Documents · Read-only

List documents inside an Airparser inbox, including recent parsed results and pagination metadata.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `inbox_id` (`string`, required): Airparser inbox id.
- `from` (`string`, optional): Optional start date in YYYY-MM-DD format.
- `page` (`integer`, optional): Optional 1-based page number.
- `to` (`string`, optional): Optional end date in YYYY-MM-DD format.

Example input: `{"inbox_id":"<inbox_id>"}`

### `airparsermcp_list_inboxes`

List Inboxes · Read-only

List active Airparser inboxes available to the authenticated user.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `airparsermcp_create_inbox`

Create Inbox · Write

Create a new Airparser inbox with the selected LLM engine.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `llm_engine` (`string`, required): Parsing engine, default 'vision'. 'vision' reads the page as an image (layouts, columns, scans, photos, tables). 'text' reads only the extracted text, which suits plain-text emails, and can mix up fields on multi-column layouts. One of: `vision`, `text`. Default: `vision`.
- `name` (`string`, required): Human-friendly inbox name.

Example input: `{"llm_engine":"vision","name":"<name>"}`

### `airparsermcp_generate_schema_from_document`

Generate Schema From Document · Write

Generate an Airparser extraction schema proposal from an existing document in an inbox.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `document_id` (`string`, required): Existing document id inside that inbox.
- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"document_id":"<document_id>","inbox_id":"<inbox_id>"}`

### `airparsermcp_save_postprocessing_code`

Save Postprocessing Code · Write

Save Airparser post-processing Python code for an inbox without changing whether it is enabled.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `code` (`string`, required): Python function body to save.
- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"code":"<code>","inbox_id":"<inbox_id>"}`

### `airparsermcp_set_postprocessing_enabled`

Set Post-Processing Enabled · Write

Enable or disable the saved Airparser post-processing step for an inbox.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `inbox_id` (`string`, required): Airparser inbox id.
- `is_enabled` (`boolean`, required): Whether post-processing should be enabled.

Example input: `{"inbox_id":"<inbox_id>","is_enabled":true}`

### `airparsermcp_test_postprocessing_code`

Test Post-Processing Code · Write

Run Airparser post-processing Python code against an existing parsed document without saving it.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `code` (`string`, required): Python function body to run inside the restricted Airparser post-processing wrapper.
- `document_id` (`string`, required): Parsed Airparser document id.
- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"code":"<code>","document_id":"<document_id>","inbox_id":"<inbox_id>"}`

### `airparsermcp_update_extraction_schema`

Update Extraction Schema · Write

Create or update the extraction schema for an Airparser inbox using the native validated schema format.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`array`, required): Extraction schema fields in Airparser native format. Each field object must use "name" (not "key") as the field identifier.
- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"fields":[],"inbox_id":"<inbox_id>"}`

### `airparsermcp_update_extraction_schema_from_json_schema`

Update Extraction Schema From JSON Schema · Write

Convert an OpenAI-style schema description into the native Airparser extraction schema format and save it to an inbox.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`array`, required): OpenAI-style field definitions to convert. Each item has name, description, type, and optional attributes.
- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"fields":[],"inbox_id":"<inbox_id>"}`

### `airparsermcp_update_fields_meta`

Update Fields Meta · Write

Enable or disable per-document output metadata fields for an Airparser inbox. Only passed fields are changed; omitted fields keep their current value.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields_meta` (`object`, required): Partial set of metadata fields to enable/disable. Optional boolean properties: from, from_name, original_recipient, to, cc, bcc, reply_to, subject, received_at_datetime, received_at_date, received_at_time, attachments_nb, doc_id, doc_url, content_type, content, content_plaintext, content_plaintext_md, download_url, parent_id, parent_data, name, filename, credits, pages, confidence.
- `inbox_id` (`string`, required): Airparser inbox id.

Example input: `{"fields_meta":{},"inbox_id":"<inbox_id>"}`

### `airparsermcp_upload_document_sync`

Upload Document Sync · Write

Upload one document to an Airparser inbox and wait for the parsed result. File content must be base64 encoded.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `content_base64` (`string`, required): Base64-encoded file contents.
- `content_type` (`string`, required): MIME type of the document.
- `filename` (`string`, required): Original filename including extension.
- `inbox_id` (`string`, required): Target Airparser inbox id.
- `metadata` (`object`, optional): Optional metadata key-value pairs to attach.

Example input: `{"content_base64":"<content_base64>","content_type":"<content_type>","filename":"<filename>","inbox_id":"<inbox_id>"}`

## Related

Other Files & Documents connectors ([all 45](/agentkit/connectors/?category=files-documents)):

- [Google Drive](/agentkit/connectors/googledrive/): Scalekit connector, OAuth, 47 tools
- [Google Forms](/agentkit/connectors/googleforms/): Scalekit connector, OAuth, 10 tools
- [Microsoft 365](/agentkit/connectors/microsoft365/): Scalekit connector, OAuth, 317 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
