> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipecorn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pipecorn MCP server

> Connect Claude, ChatGPT, Claude Code, Cursor, or any MCP-compatible assistant to Pipecorn and let it find companies, search leads, and enrich contacts from a chat.

The Pipecorn MCP server lets AI assistants and agents use Pipecorn directly
through the [Model Context Protocol](https://modelcontextprotocol.io). Once
connected, your assistant can find companies, search leads, enrich contacts,
manage Sales Navigator lists, and pull buying signals on your behalf, using
the same data and credits as the [REST API](https://docs.pipecorn.com/api-reference/main-use-cases.md).

| | |
| - | - |
| **Server URL** | `https://mcp.pipecorn.com/mcp` |
| **Transport** | Streamable HTTP |
| **Authentication** | OAuth (Claude, ChatGPT), or an API key in the `X-API-Key` or `X-Workspace-Key` header (Claude Code, Cursor, custom clients). See [Authentication](#authentication) |
| **Tools** | 44, across companies, leads, contacts, lists, personas, signals, jobs, and utilities. See the [tool reference](https://docs.pipecorn.com/mcp/tools.md) |
| **Discovery** | [`/.well-known/mcp.json`](https://docs.pipecorn.com/.well-known/mcp.json) |
| **Registry** | [`com.pipecorn/mcp`](https://registry.modelcontextprotocol.io/v0/servers/com.pipecorn%2Fmcp/versions/latest) in the official MCP registry, also listed on [Glama](https://glama.ai/mcp/connectors/com.pipecorn/mcp) |
| **Agent Plugin** | [`Pipecorn/cli-pipecorn`](https://github.com/Pipecorn/cli-pipecorn): `plugin.json`, `mcp.json` and the Pipecorn agent skill |

Building an integration and only need your assistant to read these docs? Use
the [docs MCP server](https://docs.pipecorn.com/api-reference/docs-mcp.md) at `https://docs.pipecorn.com/mcp`
instead. It needs no key and spends no credits.

## Set up your client

> [card] [Claude](https://docs.pipecorn.com/mcp/setup/claude.md)
>
> Add Pipecorn as a custom connector and sign in with OAuth.

> [card] [ChatGPT](https://docs.pipecorn.com/mcp/setup/chatgpt.md)
>
> Add the Pipecorn app from the ChatGPT app directory, or create one in
> developer mode, and sign in with OAuth.

> [card] [Claude Code](https://docs.pipecorn.com/mcp/setup/claude-code.md)
>
> One command with your API key.

> [card] [Cursor](https://docs.pipecorn.com/mcp/setup/cursor.md)
>
> Add the server to your `mcp.json` with your API key.

Any other MCP client that supports custom headers can connect the same way
Claude Code and Cursor do: point it at the server URL and send your API key
in the `X-API-Key` header (or a workspace key in `X-Workspace-Key`).

## Authentication

The server accepts exactly one of these on each request:

| Header | Value | Used by |
| - | - | - |
| `X-API-Key` | Your personal [API key](https://docs.pipecorn.com/api-reference/API-key.md) | Claude Code, Cursor, custom clients |
| `X-Workspace-Key` | A [workspace API key](https://docs.pipecorn.com/essentials/authentication.md#personal-and-workspace-api-keys) (Scale plan) | Shared agents and production integrations |
| `Authorization: Bearer <token>` | An OAuth access token, obtained by the client through the OAuth flow | Claude, ChatGPT and other OAuth connectors |

Do not put an API key in `Authorization`. A Bearer value is always treated as
an OAuth access token, so a raw API key there is rejected with `401` and
`"Invalid or expired token"`.

## Prerequisites

* A Pipecorn account with an [API key](https://docs.pipecorn.com/api-reference/API-key.md) (personal, or
  a workspace key). OAuth clients sign in with your Pipecorn login instead and
  do not need the key.
* Node.js, only for clients that run the server through `mcp-remote`
  (Claude Code, Cursor).

## How it fits with the other surfaces

The MCP server exposes the same primitives as the REST API and the
[CLI](https://docs.pipecorn.com/cli/overview.md), so anything you can do in a chat you can also script.
Use MCP when a person is driving an assistant. Use the API or CLI when code
is driving the workflow. Credits and plan limits are shared across all three;
see [Credits vs limits](https://docs.pipecorn.com/api-reference/credits-vs-limits.md).

Before any large extraction or enrichment, the assistant should call the
`preview_*` tools and `get_credits` to size the job and confirm the balance.
The [agents guide](https://docs.pipecorn.com/agents.md) lists the conventions
we recommend agents follow.

## Roadmap

The MCP server is updated regularly. Upcoming work:

* Additional tools for Signals and Lists
* CSV download support
* Custom UI cards
* Token-usage optimizations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.