New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@preceptai/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@preceptai/mcp-server

Precept MCP Server for lead and company B2B intelligence

latest
Source
npmnpm
Version
1.2.40
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Precept MCP Server

npm version License: MIT Model Context Protocol

Expose Precept's enterprise B2B lead discovery, company intelligence, signal monitoring, and automated LinkedIn outreach directly inside AI assistants like Claude (Web & Desktop), ChatGPT, Cursor, and Codex.

This server implements the open Model Context Protocol (MCP) specification. It enables LLMs to search millions of verified decision makers, enrich contact details via a 140+ provider waterfall, monitor hiring and career moves, and orchestrate automated outreach campaigns without leaving the conversation.

Architecture & Transports

Precept MCP Server supports dual-transport bootstrapping:

  • Streamable HTTP (Remote OAuth 2.1): Hosted endpoint for cloud AI platforms (Claude.ai, ChatGPT), enterprise agents, and browser clients. Uses standard OAuth 2.1 with PKCE.
  • stdio (Local CLI): Standard input/output transport for local developer tools (Claude Desktop, Cursor, Codex, CLI agents) powered by npx -y @preceptai/mcp-server.

All heavy data operations are non-blocking and asynchronous: jobs immediately return an enrichment_id (jobId), and the assistant polls progress via precept_get_job_status until complete. This prevents LLM client timeouts on deep web research and waterfall data lookups.

Available Tools

Precept MCP Server exposes 13 specialized tools organized across lead discovery, account intelligence, signal subscriptions, outreach automation, and system utilities:

1. Lead & Contact Discovery

ToolDescription
precept_search_leadsSearch and discover business leads using natural language queries (e.g. "Marketing heads at SaaS companies in California with 50-200 employees"). Supports optional waterfall contact enrichment (verified emails and direct dials) and AI-generated prospect profiles.
precept_get_leads_from_post_searchDiscover high-intent prospects actively engaging (posting, commenting, reacting) with specific topics on LinkedIn over the past 24 hours, week, or month.
precept_enrich_leadsEnrich a specific list of contacts using LinkedIn URLs or name + company details. Delivers verified emails, phone numbers, professional summary, top problems, and strategic initiatives.

2. Company & Account Intelligence

ToolDescription
precept_search_companiesDiscover accounts matching specific criteria (industry, headcount, geography, revenue, recent funding, tech stack). Optionally extracts key department heads and employee breakdowns.
precept_get_company_insightsRetrieve deep structured intelligence on target accounts: decision makers across 40 canonical departments, installed technologies, funding history, revenue, employee growth trends, and department ratios.

3. Hiring & Market Signal Subscriptions

ToolDescription
precept_job_posting_subscriptionsMonitor real-time hiring triggers on a 7–30 day schedule. Supports natural language queries ("active AI or ML jobs in healthcare") or monitoring up to 100 target accounts. Automatically extracts relevant decision makers for each open role with zero duplicate billing.
precept_lead_subscriptionsTrack up to 150 target decision makers per organization for career moves: job changes, internal promotions, title updates, and new LinkedIn posts.

4. Automated LinkedIn Outreach (Chrome Extension)

ToolDescription
precept_get_extension_statusChecks if the user's Precept Chrome Extension is installed and active. Required before launching outreach or dispatching messages.
precept_campaign_queueQueue discovered leads directly into automated LinkedIn outreach campaigns. Supports FIFO queue discipline, progress tracking, rate-limit safety pauses, resuming, pausing, and archiving campaigns. Runs safely in Chrome background without needing Precept or LinkedIn tabs open.
precept_linkedin_messagesDispatches 1-on-1 direct messages or connection request notes via LinkedIn with automated delivery status verification and error diagnostics.

5. Utility & System

ToolDescription
precept_get_job_statusPolls progress and retrieves complete structured results for any async search or enrichment job. Returns progress percentages while processing and full datasets upon completion.
precept_check_creditsChecks remaining account credit balance and connector version status before initiating operations.
precept_check_versionValidates running connector version against the latest release to check if updates are available.

How It Works (Async Non-Blocking Pattern)

User: "Find 20 VP of Sales at fintech companies in New York"
  │
  ▼
LLM calls `precept_check_credits` → verifies sufficient balance
  │
  ▼
LLM calls `precept_search_leads` → returns { enrichment_id: "job_94827" }
  │
  ▼
LLM polls `precept_get_job_status("job_94827")` every 4s (up to 150 attempts / 10m)
  │ Updates user with progress every ~1 minute
  ▼
Job completes → LLM presents full structured table/artifact with contacts
  │
  ▼
Follow-up: LLM offers to enrich phone numbers or queue LinkedIn outreach

Client Setup

Step 1: Create Account & Get API Key

Option A: Remote Setup (Claude.ai Web, Claude Desktop App, & ChatGPT)

Both Claude (Web & Desktop apps) and ChatGPT connect to Precept via remote Streamable HTTP using OAuth 2.1. Once added in your Claude account, connectors automatically sync across web, desktop, and mobile:

1. Claude (Web & Desktop App)

  • In Claude.ai or the Claude Desktop app, open Settings (or Customize) → Connectors.
  • Click Add Custom Connector (or +).
  • Fill in the connector details:
    • Name: Precept AI
    • Remote MCP Server URL: https://precept-mcp-server-production.up.railway.app/mcp
    • Client ID: claude
  • Click Save then click Connect.
  • When the authorization window appears, paste your Precept API Key to authorize the connector.

2. ChatGPT (Web & Desktop)

  • In ChatGPT, open Settings → Connected apps / Developer Mode.
  • Add a new remote MCP connector:
    • URL: https://precept-mcp-server-production.up.railway.app/mcp
  • Click Connect. When the authorization window appears, paste your Precept API Key to authorize the connector.

Option B: Local CLI & IDE Setup (Claude Code, Cursor, Codex)

Developer CLI agents and IDEs execute the server locally over stdio via npx using your API key:

1. Claude Code (Anthropic CLI)

Run the following in your terminal:

claude mcp add --env PRECEPT_API_KEY=pt_your_api_key_here precept -- npx -y @preceptai/mcp-server

(Supports --scope user to make Precept available globally across all projects, or --scope project to save into .mcp.json).

Prefer the hosted connector instead? Claude Code also supports remote servers:

claude mcp add --transport http precept https://precept-mcp-server-production.up.railway.app/mcp

Then run /mcp inside Claude Code to complete authorization.

2. Cursor

  • Go to Settings → Features → MCP.
  • Click + Add New MCP Server.
  • Configure:
    • Name: Precept
    • Type: command
    • Command: npx -y @preceptai/mcp-server
  • Set PRECEPT_API_KEY=pt_your_api_key_here in your environment or workspace .env.

3. Claude Desktop (Alternative: Local stdio mode)

If you prefer running the server locally in Claude Desktop instead of using the remote OAuth connector, add this to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "precept": {
      "command": "npx",
      "args": ["-y", "@preceptai/mcp-server"],
      "env": {
        "PRECEPT_API_KEY": "pt_your_api_key_here"
      }
    }
  }
}

4. Codex CLI

Run:

codex mcp add precept --env PRECEPT_API_KEY=pt_your_api_key_here -- npx -y @preceptai/mcp-server

Hosting Your Own Remote Instance

To host your own remote Streamable HTTP server:

git clone https://github.com/johnbabat/precept-mcp-server.git
cd precept-mcp-server
npm install
npm run build

Configure environment variables in .env:

PORT=3000
MCP_TRANSPORT=http
ALLOWED_HOSTS=your-domain.com
JWT_SECRET=your-random-32-character-secret
PRECEPT_API_URL=https://api.preceptai.co.uk

Start the server:

npm start

The endpoint will be available at http://your-domain.com:3000/mcp with full OAuth 2.1 endpoints at /authorize and /token.

Environment Variables

VariableTransportDefaultDescription
PRECEPT_API_KEYstdio(required for stdio)Your Precept API key (pt_...).
MCP_TRANSPORTBothstdioTransport type: stdio (local CLI) or http (remote streamable HTTP).
PORThttp3000Port for the HTTP server.
ALLOWED_HOSTShttplocalhost,127.0.0.1Comma-separated allowed hostnames for DNS rebinding protection.
JWT_SECREThttp(auto-generated)Secret for signing OAuth tokens. Set this in production — if omitted, a random secret is generated and all connected users are logged out on every restart.
ALLOWED_REDIRECT_DOMAINShttp(see source)Comma-separated domains allowed as OAuth redirect_uri targets (e.g. Claude and ChatGPT callback domains).
REDIS_URLhttp(optional)Redis connection string for persistent distributed auth code storage. Defaults to in-memory store.
PRECEPT_API_URLBothhttps://api.preceptai.co.ukCore Precept API endpoint.
WEB_APP_URLhttphttps://app.preceptai.co.ukPrecept web app that handles sign-in/sign-up during OAuth and mints the connector API key.

Credits & Pricing

Precept API uses a credit-based model for data operations:

OperationCost
Lead Search (basic profile)0.1 credits / lead
Lead Search with AI Insights1.1 credits / lead
Lead Enrichment (existing contact)1.0 credit / lead
Verified Work Email+1.0 credit / lead
Verified Direct Phone Number+10.0 credits / lead
Both Email & Phone+11.0 credits / lead
Company Search / Base Insights1.0 credit / company
Custom AI Company Query+0.2 credits / query / company
Company Decision Makers0.5 credits / person
Company Tech Stack2.0 credits / company
Company Revenue / Funding5.0 credits / company
Job Posting Subscription Monitoring0 credits for search; 0.5 credits / discovered decision maker
Post Activity Filter+5 credits / lead

Full documentation on credit policies is available at docs.preceptai.co.uk.

License

MIT © Precept AI

Keywords

mcp

FAQs

Package last updated on 17 Oct 2026

Related posts