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

The Exa MCP connector routes your AI agent's tool calls to Exa's own MCP server through Scalekit. Each user connects their own Exa API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 3 tools.

**Authentication:** API Key
**Categories:** AI, Search, Developer Tools
**Tools:** 3: 2 read, 1 write, 0 destructive
**Users sign in with:** API key
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=EXAMCP)

## What you can do

- **Search the web**: find current news, facts, people, and companies and get clean page content back
- **Read webpages**: fetch the full content of specific URLs as clean markdown

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

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

   **Console steps with screenshots:**

   Register your Exa API key with Scalekit so it can authenticate and proxy requests on behalf of your users. Exa MCP uses API key authentication.

   1. ### Generate an Exa API key

      - Sign in to [dashboard.exa.ai/api-keys](https://dashboard.exa.ai/api-keys). Under **Management**, click **API Keys**.

      - Click **+ Create Key**, enter a name (e.g., `Agent Auth`), and confirm.

      - In the **Secret Key** column, click the eye icon to reveal the key and copy it. Store it somewhere safe — you will not be able to view it again.

      > Image: Exa dashboard API Keys page showing existing keys and the + Create Key button

   2. ### Create a connection in Scalekit

      - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** > **Create Connection**. Find **Exa MCP** and click **Create**.

      - Note the **Connection name** — you will use this as `connection_name` in your code (e.g., `examcp`).

   3. ### Add a connected account

      Connected accounts link a specific user identifier in your system to an Exa API key. Add one in the dashboard to test. In production, each user adds their own through the authorization link: they enter their credentials on the page it opens.

      **In the dashboard, to test**

      - Open the connection you created and click the **Connected Accounts** tab → **Add account**.

      - Fill in:
        - **Your User's ID** — a unique identifier for this user in your system (e.g., `user_123`)
        - **API Key** — the Exa API key you copied in step 1

      - Click **Save**.

      **From your backend, if your app already has the credentials**

      For example, when users enter them on a settings page in your app:

        **Node.js**

        ```typescript
        import { ConnectorStatus } from '@scalekit-sdk/node'

        const authorizationDetails = {
          details: {
            case: 'staticAuth',
            value: { details: { api_key: 'your-exa-api-key' } },
          },
        };

        let { connectedAccount } = await scalekit.actions.upsertConnectedAccount({
          connectionName: 'examcp',
          identifier: 'user_123',
          authorizationDetails,
        });

        // Make sure the account is ACTIVE before the first tool call.
        if (connectedAccount?.status !== ConnectorStatus.ACTIVE) {
          ({ connectedAccount } = await scalekit.actions.upsertConnectedAccount({
            connectionName: 'examcp',
            identifier: 'user_123',
            authorizationDetails,
          }));
        }
        ```

        **Python**

        ```python
        authorization_details = {"static_auth": {"api_key": "your-exa-api-key"}}

        response = scalekit_client.actions.upsert_connected_account(
            connection_name="examcp",
            identifier="user_123",
            authorization_details=authorization_details,
        )

        # Make sure the account is ACTIVE before the first tool call.
        if response.connected_account.status != "ACTIVE":
            response = scalekit_client.actions.upsert_connected_account(
                connection_name="examcp",
                identifier="user_123",
                authorization_details=authorization_details,
            )
        ```

   > note: Credits and rate limits
   >
   > Each Exa API key has a default limit of 10 QPS. Search and fetch requests cost 1 credit per request, plus additional credits per content item returned. Monitor usage at [dashboard.exa.ai](https://dashboard.exa.ai) → **Usage**.

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 = 'examcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Exa 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: 'examcp_web_fetch_exa',
     toolInput: { urls: [] },
   })
   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 = "examcp"
   identifier = "user_123"

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

   # Make your first call
   result = actions.execute_tool(
       tool_input={"urls":[]},
       tool_name="examcp_web_fetch_exa",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user opens the link once and enters their Exa credentials there. If your app already has a user's credentials, add the account from your backend instead, as the console steps above show. 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: 'examcp_web_fetch_exa',
  toolInput: {
    urls: [],
  },
  connector: 'examcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="examcp_web_fetch_exa",
    tool_input={
        "urls": [],
    },
    connection_name="examcp",
    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.

### `examcp_web_fetch_exa`

Exa Web Fetch · Read-only

Read one or more webpages and return their full content as clean markdown. Use when you have specific URLs to read, or to get full content after a web search returns insufficient highlights. Supports batching multiple URLs in a single call.

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

Inputs:

- `urls` (`array`, required): One or more URLs to fetch. Batch multiple URLs in a single call.
- `maxCharacters` (`number`, optional): Maximum characters to extract per page (default: 3000).

Example input: `{"urls":[]}`

### `examcp_web_search_exa`

Exa Web Search · Read-only

Search the web and get clean, ready-to-use content. Best for current information, news, facts, people, and companies. Describe the ideal page rather than using keywords (e.g. 'blog post comparing React and Vue performance'). Use category:people or category:company to search LinkedIn profiles or companies.

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

Inputs:

- `objective` (`string`, required): Goal for this search turn; say which documents should rank first, which should be excluded, and what specific facts or figures to pull from them.
- `query` (`string`, required): Natural language search query. Should be a semantically rich description of the ideal page, not just keywords. Optionally include category:<type> (company, people) to focus results â e.g. 'category:people John Doe software engineer'.
- `numResults` (`number`, optional): Number of search results to return (default: 10).

Example input: `{"objective":"<objective>","query":"category:people John Doe software engineer"}`

### `examcp_agent_run`

Agent Run · Write

Start or resume an Exa Agent run for multi-step research, list-building, or enrichment. Use it instead of running many searches yourself when a task needs multiple searches, cross-source verification, or a structured table of results. Long-running: returns a run ID; resume with runId when the tool reports the run is still running. Not for a single question or lookup (use web_search_exa) or reading a known URL (use web_fetch_exa). An interrupted tool call is not an explicit cancellation request.

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

Inputs:

- `budget` (`object`, optional): Optional per-run spend and duration limits for the metered auto and ultra efforts. Set it when the user names a cost or time limit.
- `dataSources` (`array`, optional): Optional Exa Connect providers to enable for this run.
- `effort` (`string`, optional): Agent effort level. Defaults to low. One of: `minimal`, `low`, `medium`, `high`, `xhigh`, `ultra`, `auto`.
- `input` (`object`, optional): No description.
- `outputSchema` (`object`, optional): JSON Schema describing the desired research output. Prefer a top-level object with bounded arrays and source/evidence fields.
- `previousRunId` (`string`, optional): ID of a completed prior run to use as context for a new run.
- `query` (`string`, optional): Natural-language research or enrichment objective. Provide query or runId, not both.
- `runId` (`string`, optional): ID returned by an earlier call. Use it to check or continue waiting for the same run. Do not start a duplicate run.
- `systemPrompt` (`string`, optional): Optional system-level guidance for the Agent.

Example input: `{}`

## Related

Other ways to connect Exa:

- [API key](/agentkit/connectors/exa/): Scalekit connector, API key, 21 tools

Other AI connectors ([all 156](/agentkit/connectors/?category=ai)):

- [Chorus](/agentkit/connectors/chorus/): Scalekit connector, Username and password, 9 tools
- [Gong](/agentkit/connectors/gong/): Scalekit connector, OAuth, 69 tools
- [Jiminny](/agentkit/connectors/jiminny/): Scalekit connector, Access token, 27 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 |
