Before you start
- Hosted connectors (Claude web & desktop, ChatGPT, Claude Code over HTTP) sign you in to Precept with OAuth 2.1. There’s no API key to copy: Precept creates one for the connector, and new accounts start on the free Starter trial (no card needed).
- Local setups (
npx, for Claude Code, Cursor, Codex, Claude Desktop local mode or your own agent) need an API key. Sign in at app.preceptai.co.uk, open the Developer page, click Generate New API Key and copy it (keys start withpt_). The server reads it from thePRECEPT_API_KEYenvironment variable.
Connect your client
- Claude (web & desktop)
- Claude Code
- ChatGPT
- Cursor
- Codex
- Claude Desktop (local)
Uses the hosted server. Once added, the connector is available on Claude web, desktop and mobile.
-
In Claude, open Settings → Connectors → Add custom connector and fill in:
- Name:
Precept AI - MCP server URL:
https://precept-mcp-server-production.up.railway.app/mcp
- Name:
-
Leave the options Claude detects (Sign in now, Use your own OAuth client) as they are, enter the OAuth client ID
claude, leave the client secret blank, and click Add. - Click Connect next to Precept AI and sign in to Precept (or create a free account) in the window that opens. It closes once you’re connected.
Use it from your own agent
Any MCP client can call Precept’s tools directly, with or without an LLM in the loop. This example uses the official TypeScript SDK (npm install @modelcontextprotocol/sdk @preceptai/mcp-server):
client.listTools() into its tool definitions and forward its tool calls to client.callTool(). A full agent-loop example with the Claude API is on preceptai.co.uk/mcp/code.
Check it works
Ask your assistant:Check my Precept credits.It should call
precept_check_credits and reply with your balance. Then try a real request, for example “Find 10 Heads of Growth at Series A fintechs in London”.
