Hosted or local?
The hosted server and version 3 of the local npm package expose the same tools. Both use the CompanyEnrich V2 API.
Not sure? Use hosted and sign in. Use local if your client only runs stdio servers, or you want calls to go straight from your machine to our API.
You only need an API key if you skip sign-in or run locally. Create one at app.companyenrich.com/access-keys.
Connect your client
Find your client and pick a tab. Replaceyour-api-key with your real key.
Claude Code
/mcp in Claude Code and finish logging in.
Codex CLI
codex mcp add. If you close it, run codex mcp login companyenrich. With the API key option, the variable has to be set in the shell where you run Codex.
Claude Desktop
Hosted: open Customize > Connectors, click + Add, then Add custom connector. Give it a name, pastehttps://mcp.companyenrich.com/mcp, and follow the steps to sign in. On Team and Enterprise plans, an Owner adds it under Organization settings > Connectors.
To use an API key instead, add a request header named Authorization with the value Bearer your-api-key when it asks.
Local: open Settings > Developer > Edit Config, add this, then fully quit and reopen the app.
Cursor
Add this to~/.cursor/mcp.json. You can use .cursor/mcp.json to set it up for one project, but don’t commit that file with your key in it.
VS Code
Add this to.vscode/mcp.json. To use it in all your projects, run MCP: Open User Configuration and add it there. With the API key and Local tabs, VS Code asks for your key once and stores it, so it stays out of your repo.
Raycast
API key
Other clients
Add a remote or Streamable HTTP server with the URLhttps://mcp.companyenrich.com/mcp and sign in when asked. To use an API key, send the header Authorization: Bearer your-api-key.
To run it locally, use npx as the command and -y @companyenrich/mcp as the arguments, then set COMPANYENRICH_API_KEY in the server’s environment.
Check that it works
Ask your client this:What’s my CompanyEnrich credit balance?It runs
get_current_user, which is free. If you see your balance, you’re connected. If you don’t, see Troubleshooting.
What you can ask
These examples assume the tools return the requested results without paid expansions.Tools and credits
search_companies and search_people return up to 20 results by default. Set pageSize to limit how many you pay for in one call. An empty search page costs one result’s base price.
Use expand to request extra data on company or person records.
- On company records,
financial,keywords,naicsCodes,technologies, andworkforceeach add 1 credit per company returned. For example, enriching one domain withexpand: ["workforce"]costs 2 credits when the company is found. - On person records,
educationadds 1 credit per person returned. Thecompanyexpansion adds 1 credit per unique company profile included in the response.
creditInfo. See Credits.
Install or pin the npm package
The Local tabs usenpx, which runs the package without you installing it.
To pin the local server to version 3.0.0, set args to ["-y", "@companyenrich/mcp@3.0.0"]. If you have prompts or code written for 2.x, see the package upgrade guide.
Install as a Node module: use this if you don’t want your client going through npx every time it starts.
node. Replace /path/to/node_modules with what npm root -g printed, or with the full path to your project’s node_modules folder.
servers as the top-level key and add "type": "stdio".
To update, run npm install @companyenrich/mcp@latest, with -g for a global install.
The package only ships the server, so there’s nothing to import in your own code. It reads COMPANYENRICH_API_KEY (required) and COMPANYENRICH_API_URL (optional, defaults to https://api.companyenrich.com).
Troubleshooting
The tools don’t show up Restart your client after changing its config. Then check that your JSON is valid and in the right file. To see what’s connected:- Claude Code: run
claude mcp list - Codex CLI: run
codex mcp list - Cursor: open Customize and make sure the server is on. Logs are in the Output panel under MCP Logs.
- VS Code: run MCP: List Servers
- Claude Desktop on macOS: check the logs in
~/Library/Logs/Claude
Authentication failed. Please check your API key.
Your key is wrong, or the config still says your-api-key. Fix it and restart your client. We only check the key when a tool runs, so the tools can show up even with a bad key.
COMPANYENRICH_API_KEY is not set
The local server can’t find your key. Add it to the env block for this server and restart your client.
Insufficient credits. Please check your account balance.
Your account is out of credits. Tool calls will fail until you add more.
Rate limit exceeded. Please try again later.
You’re sending too many requests. Wait a bit and try again. See Rate limits.
env: node: No such file or directory, or your client can’t find npx
Run node -v and make sure you’re on Node.js 20 or newer. Desktop apps often can’t see Node if you installed it with nvm or Homebrew. Two changes fix it:
- Run
which npxand use that full path as thecommand. If you installed the package as a Node module, use the full path fromwhich nodeinstead. - Run
dirname $(which node)and add that folder toPATHin theenvblock.
Authorization: Bearer your-api-key.
Your config points to /sse
We don’t serve the old SSE endpoint anymore. Switch to https://mcp.companyenrich.com/mcp.