Add one http server to mcp.json, sign in through your browser, and VS Code chat can search, count and enrich people and companies. No API key is pasted anywhere. The free plan gets the same server as Pro.
This page covers VS Code only. Other clients are on the MCP hub, including Claude Code.
Before you start
You need a LeadOcean account and VS Code with chat set up. Create a free account. It has no card and 1,000 records, one-off, and it needs a work email.
The VS Code MCP docs, September 2026, name no paid plan for adding an MCP server. The chat setup docs, September 2026, say signing in without a plan enrolls an eligible account in Copilot Free. Organizations can restrict MCP servers through GitHub policies, so ask your admin if the server is blocked.
Add the server
The server URL is https://api.leadocean.io/mcp. Create .vscode/mcp.json in your project:
{
"servers": {
"leadocean": {
"type": "http",
"url": "https://api.leadocean.io/mcp"
}
}
}That is the whole configuration. For every project, run MCP: Open User Configuration from the Command Palette and add the same entry there. VS Code also reads a portable .mcp.json at the project root, but that file uses a top-level mcpServers key instead of servers.
Do not add a headers entry with a key or token. LeadOcean uses OAuth, so there is nothing to paste. Commit the file if you want teammates to get the same server.
Sign in
Sign-in is OAuth 2.1 in your browser. Run MCP: List Servers, pick leadocean, and choose Start Server. VS Code docs say a browser window opens for authorization on the first connection when OAuth is in play. They do not describe the prompt for a server with no oauth block, so follow what your VS Code shows.
You do not register an OAuth client or set a clientId. The LeadOcean OAuth server supports dynamic client registration at https://api.leadocean.io/oauth/register (scope mcp), so clients can register themselves.
Sign in to LeadOcean, approve, and return to VS Code. If VS Code asks whether you trust the server, confirm it. Then open the Configure Tools button in the chat input to see the tools. To revoke, remove the app under API keys, Connected apps in your LeadOcean account.
Your first prompt
Start with a count. Counting is free.
How many C-level engineering leaders are in Germany? Count only. Do not pull anyone.
The agent calls leadocean_count_leads with jobLevel set to C-Team, jobFunction set to Engineering and country set to DE. That costs 0 records. We ran those filters on 2026-10-01 and the tool returned 3,456, an exact total.
That figure uses the tool's default email filter: best email verified, catch_all_valid or catch_all. It is not everyone we hold for those filters.
When the count looks right, ask for a sample: "Pull five of them with title and company." That calls leadocean_search_leads and costs 1 record per person returned, so 5. For a larger sizing exercise, see size your TAM in VS Code. If your filters use industry codes, read NAICS vs SIC first.
The 12 tools
The agent lists them as leadocean_ plus the name below. Six of them spend no records.
| Tool | What it does | Records |
|---|---|---|
leadocean_count_leads | Counts people for a filter set. | Free |
leadocean_list_filters | Lists valid filters and enum values. | Free |
leadocean_list_enum_values | Looks up exact strings, such as one of 534 industries. | Free |
leadocean_get_account | Shows plan, records left and export ceilings. | Free |
leadocean_get_export | Polls one export for status and download link. | Free |
leadocean_list_exports | Lists your exports. | Free |
leadocean_search_leads | Finds people by title, level, country, domain and more. | 1 per person returned |
leadocean_get_lead | Enriches one person by LinkedIn URL, email or person_id. | 1 |
leadocean_find_phone | Returns the phone numbers held for one person. | 1 |
leadocean_get_company | Enriches one company by domain or LinkedIn URL. | 1 |
leadocean_search_companies | Finds companies by industry, size, funding or technology. | 1 per company returned |
leadocean_export_leads | Starts a bulk CSV export of people. | 1 per row |
A leadocean_get_lead call that finds nobody costs nothing. Exports reserve up to your limit when they start, so count first. Source: LeadOcean MCP docs, September 2026.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| VS Code shows an error in the Chat view | Wrong URL, wrong type, or no network path to the server. | Select the notification, then Show Output. Or run MCP: List Servers, pick leadocean, and choose Show Output. Check the URL and "type": "http". |
| Tools never appear | The server is stopped, disabled or untrusted. | Run MCP: List Servers and start it. Check it is not disabled. MCP: Reset Trust clears a trust decision you declined. |
| Tool list looks stale | VS Code cached an older tool list. | Run MCP: Reset Cached Tools. |
| Sign-in never finishes | The OAuth window was closed before you approved. | Restart the server from MCP: List Servers and approve in the browser. |
| 402 | Your 1,000 free records are spent, or an export needs more than you have left. The free plan is one-off. | Check leadocean_get_account. Move to Pro at $499 a month, or shrink the limit. |
| 429 | Past the rate limit of 100 requests per second per key, or an export ceiling was reached. | Wait a second and retry, or ask the agent to work in small batches. Export 429s return a reset time. |
| Wrong enum, filter rejected | A value is not in the catalogue, such as an invented industry. | Have the agent call leadocean_list_enum_values and use the exact string it returns. |
FAQ
Do I need an API key for VS Code?
No. The MCP server uses OAuth sign-in. The REST API uses an x-api-key header. Both spend the same records from one balance.
Is the free plan the same server as Pro?
Yes. Free is 1,000 records, one-off, with search and enrich both available. Pro is $499 a month, flat, with no per-record price.
What does the agent cost me per prompt?
Only records it receives. Counts, filter lookups and account checks are free. Tell it a limit, such as "stop after 25 records", and it will hold to it.
Connect VS Code to 693M people, free
Free to start. No credit card. 1,000 records to spend whenever you like.
Get your free API key →