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

# MCP Server Overview

> Precept's Model Context Protocol (MCP) server gives Claude, ChatGPT, Cursor, Codex and custom AI agents B2B lead search, contact enrichment and company research as tools they can call.

The Precept MCP server exposes Precept's B2B sales research as tools that AI assistants can call on their own. Ask Claude *"Find 20 VPs of Sales at fintech companies in New York and get their work emails"* and it searches, waits for the job and returns the results, using your Precept account.

It implements the open [Model Context Protocol](https://modelcontextprotocol.io) and is published as [`@preceptai/mcp-server`](https://www.npmjs.com/package/@preceptai/mcp-server) on npm and as `uk.co.preceptai/precept` in the official MCP registry.

## What an assistant can do with it

| Capability | Tools |
| :- | :- |
| Find people from a plain-English description | `precept_search_leads` |
| Find people posting about a topic on LinkedIn | `precept_get_leads_from_post_search` |
| Get everyone who reacted to or commented on a LinkedIn post | `precept_get_post_engagers` |
| Verified emails, phone numbers and AI insights for people you already have | `precept_enrich_leads` |
| Find companies matching criteria | `precept_search_companies` |
| Decision makers, tech stack, revenue, funding, headcount and custom questions for named companies | `precept_get_company_insights` |
| Monitor hiring signals and career moves on a schedule | `precept_job_posting_subscriptions`, `precept_lead_subscriptions` |
| Run LinkedIn outreach through the Precept Chrome extension | `precept_campaign_queue`, `precept_linkedin_messages`, `precept_get_extension_status` |
| Check jobs, credits and version | `precept_get_job_status`, `precept_check_credits`, `precept_check_version` |

See the [Tools Reference](https://docs.preceptai.co.uk/mcp/tools.md) for each tool's parameters.

## MCP server vs REST API

Both use the same data, the same Precept account and the same [credits](https://docs.preceptai.co.uk/essentials/credits.md).

| | MCP server | REST API |
| :- | :- | :- |
| **Who calls it** | An AI assistant, deciding which tool to use from your request | Your code |
| **Best for** | Ad-hoc research, prospecting in chat, agent workflows | Pipelines, CRM sync, bulk jobs, scheduled automations |
| **Getting results** | The assistant polls `precept_get_job_status` for you | Poll `GET /v1/jobs/{jobId}` or receive a webhook |
| **Setup** | Add a connector or one config entry | HTTP requests with a Bearer token |

## Transports

| Transport | Endpoint | Auth | Used by |
| :- | :- | :- | :- |
| **Streamable HTTP** (hosted) | `https://precept-mcp-server-production.up.railway.app/mcp` | OAuth 2.1 with PKCE; you sign in to Precept in a browser window | Claude.ai, Claude Desktop, ChatGPT, Claude Code (remote) |
| **stdio** (local) | `npx -y @preceptai/mcp-server` | `PRECEPT_API_KEY` environment variable | Claude Code, Cursor, Codex, Claude Desktop (local), custom agents |

## How a request runs

Searches and enrichments can take minutes, so every data tool starts a job and returns immediately instead of holding the connection open.

```text theme={null}
You: "Find 20 VPs of Sales at fintech companies in New York"
  │
  ▼
Assistant → precept_check_credits         confirms the balance
  │
  ▼
Assistant → precept_search_leads          returns { enrichment_id: "..." }
  │
  ▼
Assistant → precept_get_job_status        polled every ~4s until complete (up to ~10 min)
  │
  ▼
Assistant shows the leads, the credits used, and offers to add emails or phones
```

Completed jobs report what they cost in `cost.credits`, with a `cost.breakdown` per charge type (leads, insights, emails, phones).

> [card] [Set up the MCP server](https://docs.preceptai.co.uk/mcp/setup.md)
>
> Connect Claude, ChatGPT, Cursor, Codex or your own agent.

> [card] [Tools reference](https://docs.preceptai.co.uk/mcp/tools.md)
>
> Every tool, its parameters and what it costs.


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