---
title: "Pipecorn Developers: API Docs, MCP Server, CLI and SDK"
description: "Pipecorn developer documentation: the REST API reference, the OpenAPI spec, API key authentication, the MCP server for AI agents, the CLI and SDK options."
canonical: "https://pipecorn.com/developers"
---
# Pipecorn Developers: API Docs, MCP Server, CLI and SDK

> Pipecorn developer documentation: the REST API reference, the OpenAPI spec, API key authentication, the MCP server for AI agents, the CLI and SDK options.

Source: https://pipecorn.com/developers

| Resource                    | Where it lives                                                                                         |
| --------------------------- | ------------------------------------------------------------------------------------------------------ |
| Pipecorn API documentation  | [docs.pipecorn.com/api-reference/overview](https://docs.pipecorn.com/api-reference/overview)           |
| Pipecorn OpenAPI spec       | [pipecorn.com/openapi.json](https://pipecorn.com/openapi.json)                                         |
| Pipecorn API authentication | [docs.pipecorn.com/essentials/authentification](https://docs.pipecorn.com/essentials/authentification) |
| Pipecorn API sandbox        | [docs.pipecorn.com/essentials/sandbox](https://docs.pipecorn.com/essentials/sandbox)                   |
| Pipecorn MCP server         | [docs.pipecorn.com/mcp/overview](https://docs.pipecorn.com/mcp/overview)                               |
| Pipecorn CLI                | [docs.pipecorn.com/cli/overview](https://docs.pipecorn.com/cli/overview)                               |
| Pipecorn SDK                | [Generate a client from the OpenAPI spec](https://pipecorn.com/developers#sdk)                         |
| Docs for LLMs               | [docs.pipecorn.com/llms.txt](https://docs.pipecorn.com/llms.txt)                                       |

## Pipecorn API documentation

The Pipecorn REST API runs at `https://app.pipecorn.com/api/v2`. It gives code the same data as the app: lead and company search, waterfall enrichment of emails and mobiles, buying signals, personas and lists. The [API reference](https://docs.pipecorn.com/api-reference/overview) documents every endpoint with its parameters and example responses, and you can send test requests from the page.

Your first request reads your credit balance. It costs nothing:

```
curl https://app.pipecorn.com/api/v2/credits \
  -H "X-API-KEY: $PIPECORN_API_KEY"
```

Before you build a client, read the pages on [rate limits](https://docs.pipecorn.com/essentials/rate-limiting), [errors](https://docs.pipecorn.com/api-reference/errors) and [credits versus plan limits](https://docs.pipecorn.com/api-reference/credits-vs-limits). A `402` means the credit balance is empty, and a plan limit is a separate quota that buying credits does not raise.

## Pipecorn OpenAPI spec

The whole API is described in one OpenAPI 3 file at <https://pipecorn.com/openapi.json>. Every operation has an `operationId`, so you can load it into Postman, an agent framework or a code generator as it is. Synchronous enrichment on `https://api.pipecorn.com/v2` has its own spec at <https://pipecorn.com/openapi/sync-enrichment.json>.

## Pipecorn API authentication

The REST API takes an API key in the `X-API-KEY` header. Create a key in [Settings → API keys](https://app.pipecorn.com/settings/apis/keys) in the app. The [free plan](https://app.pipecorn.com/register) needs no card. The [authentication guide](https://docs.pipecorn.com/essentials/authentification) covers key management, and [auth.md](https://pipecorn.com/auth.md) tells an agent which method to use on each surface.

## Pipecorn API sandbox

To build without spending credits, call the API with a test key. It answers every endpoint with sample data in the live format and creates nothing in your account. The public key `pc_test_demo` works before you sign up, and your own test key is next to your live key in Settings. The [sandbox guide](https://docs.pipecorn.com/essentials/sandbox) covers what it returns and how to simulate errors, and [pipecorn.com/sandbox](https://pipecorn.com/sandbox) has an overview.

## Pipecorn MCP server

AI assistants connect to Pipecorn over the Model Context Protocol at `https://mcp.pipecorn.com/mcp`. Claude and ChatGPT sign in with OAuth. Claude Code, Cursor and custom clients send the API key in an `X-API-Key` header. The [MCP documentation](https://docs.pipecorn.com/mcp/overview) has the setup steps for each client and the list of tools. The server is listed as `com.pipecorn/mcp` in the [official MCP registry](https://registry.modelcontextprotocol.io/v0/servers/com.pipecorn%2Fmcp/versions/latest) and on [Glama](https://glama.ai/mcp/connectors/com.pipecorn/mcp).

An assistant that only needs to read these docs can use the docs MCP server at `https://docs.pipecorn.com/mcp`. It needs no key, and it cannot run a search or spend credits.

## Pipecorn CLI

The `pipecorn` command wraps the REST API for terminals, cron jobs and CI. Install it with `npm install -g @pipecorn/cli` or from Homebrew, then read the [CLI documentation](https://docs.pipecorn.com/cli/overview). The source is on [GitHub](https://github.com/Pipecorn/cli-pipecorn).

## Pipecorn SDK

Pipecorn does not publish a language SDK. The API is plain JSON over HTTPS, so any HTTP client works. If you want typed methods, generate a client in your language from the OpenAPI spec. This builds a TypeScript client:

```
npx @openapitools/openapi-generator-cli generate \
  -i https://pipecorn.com/openapi.json \
  -g typescript-fetch \
  -o ./pipecorn-client
```

Change `-g` to `python`, `go`, `ruby` or `java` for another language. Shell scripts can use the [CLI](https://pipecorn.com/developers#cli) instead, and AI agents can use the [MCP server](https://pipecorn.com/developers#mcp).

## Resources for AI agents

* [pipecorn.com/llms.txt](https://pipecorn.com/llms.txt) lists the pages on this site, and [llms-full.txt](https://docs.pipecorn.com/llms-full.txt) holds the whole developer documentation in one file.
* The [agent guide](https://docs.pipecorn.com/agents.md) says which surface to use and how to avoid spending a user's credits by mistake. The same rules ship as an [agent skill](https://pipecorn.com/.well-known/agent-skills/pipecorn/SKILL.md).
* Machine-readable discovery: the [API catalog](https://pipecorn.com/.well-known/api-catalog), the [MCP server card](https://pipecorn.com/.well-known/mcp/server-card.json) and the [ARD manifest](https://pipecorn.com/.well-known/ard.json).
