> **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 Privacy MCP server

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

**Authentication:** OAuth 2.1/DCR
**Categories:** Accounting & Finance, Productivity, AI
**Tools:** 10: 4 read, 1 write, 5 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=PRIVACYMCP)

## 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 Privacy MCP connection

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

   Scalekit credentials are available for Privacy 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 = 'privacymcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Privacy 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: 'privacymcp_list_cards',
     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 = "privacymcp"
   identifier = "user_123"

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

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="privacymcp_list_cards",
       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: 'privacymcp_get_card',
  toolInput: {
    card_token: '<card_token>',
  },
  connector: 'privacymcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="privacymcp_get_card",
    tool_input={
        "card_token": "<card_token>",
    },
    connection_name="privacymcp",
    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.

### `privacymcp_get_card`

Get Card · Read-only

Retrieve details for a specific virtual card by its token, including type, state, and spend limits.

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

Inputs:

- `card_token` (`string`, required): Token of the card to retrieve

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

### `privacymcp_get_pan`

Get Pan · Read-only

Retrieve the full card number (PAN), CVV2, and expiration date for a virtual card. Returns sensitive data.

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

Inputs:

- `card_token` (`string`, required): Token of the card to retrieve

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

### `privacymcp_list_cards`

List Cards · Read-only

List all virtual cards on your Privacy.com account with optional pagination.

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

Inputs:

- `page` (`integer`, optional): Page number for pagination (1-indexed). Default: `1`.
- `page_size` (`integer`, optional): Number of cards per page (1-100, default 20). Default: `20`.

Example input: `{}`

### `privacymcp_list_transactions`

List Transactions · Read-only

List transactions on your Privacy.com account, with optional filters for card, date range, and result.

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

Inputs:

- `account_token` (`string`, optional): Filter transactions by account token
- `begin` (`string`, optional): Start date (inclusive) in YYYY-MM-DD format
- `card_token` (`string`, optional): Filter transactions by card token
- `end` (`string`, optional): End date (exclusive) in YYYY-MM-DD format
- `page` (`integer`, optional): Page number for pagination (1-indexed). Default: `1`.
- `page_size` (`integer`, optional): Number of transactions per page (1-1000, default 20). Default: `20`.
- `result` (`string`, optional): Filter by transaction result. One of: `APPROVED`, `DECLINED`.

Example input: `{}`

### `privacymcp_update_card_memo`

Update Card Memo · Write

Update the memo (friendly name) on a virtual card.

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

Inputs:

- `card_token` (`string`, required): Token of the card to update
- `memo` (`string`, required): New friendly name for the card

Example input: `{"card_token":"<card_token>","memo":"<memo>"}`

### `privacymcp_close_card`

Close Card · Destructive

Permanently close a virtual card, blocking all future transactions. This action is irreversible.

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

Inputs:

- `card_token` (`string`, required): Token of the card

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

### `privacymcp_create_card`

Create Card · Destructive

Create a new virtual card on your Privacy.com account with optional spend limits and memo.

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

Inputs:

- `type` (`string`, required): Card type: SINGLE_USE (closes after first use), MERCHANT_LOCKED (locks to first merchant). One of: `SINGLE_USE`, `MERCHANT_LOCKED`.
- `memo` (`string`, optional): Friendly name for the card
- `spend_limit` (`number`, optional): Spend limit in dollars (e.g. 25.00)
- `spend_limit_duration` (`string`, optional): How the spend limit resets: per TRANSACTION, MONTHLY, ANNUALLY, or FOREVER (lifetime). One of: `TRANSACTION`, `MONTHLY`, `ANNUALLY`, `FOREVER`.
- `state` (`string`, optional): Initial card state (default: OPEN). One of: `OPEN`, `PAUSED`.

Example input: `{"type":"SINGLE_USE"}`

### `privacymcp_pause_card`

Pause Card · Destructive

Pause a virtual card to temporarily block all transactions until it is unpaused.

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

Inputs:

- `card_token` (`string`, required): Token of the card

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

### `privacymcp_unpause_card`

Unpause Card · Destructive

Re-enable transactions on a previously paused virtual card.

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

Inputs:

- `card_token` (`string`, required): Token of the card

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

### `privacymcp_update_card_spend_limit`

Update Card Spend Limit · Destructive

Update the spend limit and optional reset duration for a virtual card.

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

Inputs:

- `card_token` (`string`, required): Token of the card to update
- `spend_limit` (`number`, required): New spend limit in dollars (e.g. 25.00)
- `spend_limit_duration` (`string`, optional): How the spend limit resets: per TRANSACTION, MONTHLY, ANNUALLY, or FOREVER (lifetime). If omitted, keeps the current duration. One of: `TRANSACTION`, `MONTHLY`, `ANNUALLY`, `FOREVER`.

Example input: `{"card_token":"<card_token>","spend_limit":25}`

## Related

Other Accounting & Finance connectors ([all 48](/agentkit/connectors/?category=accounting-finance)):

- [QuickBooks](/agentkit/connectors/quickbooks/): Scalekit connector, OAuth, 117 tools
- [Xero](/agentkit/connectors/xero/): Scalekit connector, OAuth, 94 tools
- [Stripe](/agentkit/connectors/stripe/): Scalekit connector, Access token, 178 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 |
