DEV Community

Diego Costa
Diego Costa

Posted on

How to Connect Cursor and VS Code to a Live B2B Lead Enrichment MCP API

How to Connect Cursor and VS Code to a Live B2B Lead Enrichment MCP API

The most efficient way to give LLMs like Cursor and VS Code native access to live B2B firmographics and intent data without custom middleware is by deploying an MCP-native API server. By integrating a dedicated B2B lead enrichment MCP server, developers can transform their AI code assistants into powerful sales-intelligence agents that pull real-time company profiles directly into their IDE via standardized JSON-RPC.

Core Features

This MCP implementation bridges the gap between static training data and the live B2B landscape. By leveraging the Model Context Protocol, the server provides:

  • Deep Firmographics: Access real-time data including company size, revenue estimates, and HQ location.
  • Technographic Intelligence: Identify the software stack and infrastructure (e.g., AWS, React, Salesforce) currently used by a target organization.
  • Intent Signals: Track recent funding rounds, hiring surges, or technology migrations to identify high-propensity leads.
  • Zod-Validated Schema: Every tool input uses strict Zod annotations, which effectively eliminates LLM parameter hallucinations by forcing the model to adhere to the exact API signature required for successful lookups.

Cursor and VS Code Configuration

To enable these tools in your IDE, add the following configuration to your MCP settings (in Cursor, navigate to Settings > Models > MCP Servers).

{
  "mcpServers": {
    "b2b-enrichment": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-http",
        "--url",
        "https://lead-enrichment-mcp.agent-infra.workers.dev/mcp"
      ],
      "env": {
        "ENRICHMENT_API_KEY": "YOUR_FREE_API_KEY"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

JSON-RPC Response Example

When the LLM invokes the enrich_lead tool, it receives a clean, structured JSON object. This ensures the AI doesn't have to "guess" the data format, leading to higher accuracy in automated SDR workflows.

{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "companyName": "Example Corp",
    "industry": "Enterprise Software",
    "technographics": ["Kubernetes", "Snowflake", "Stripe"],
    "intentSignals": {
      "fundingStatus": "Series C",
      "hiringVelocity": "High",
      "topicInterest": ["Cloud Security", "FinOps"]
    },
    "confidenceScore": 0.94,
    "metadata": {
      "source": "live_web_index",
      "lastUpdated": "2023-10-27T14:30:00Z"
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Risk-Free Metered Billing

Traditional B2B data providers charge for every API call, regardless of quality. This MCP server utilizes a Confidence Score-based Metered Billing structure. Your account is only debited for successful enrichments where the Confidence Score is > 0.6. If the data is low quality, or the record is not found, the cost is $0, making it the most cost-effective solution for building autonomous SDR swarms and high-volume sales agents.

Get Your Free B2B Enrichment API Key

Visit lead-enrichment-mcp.agent-infra.workers.dev to grab your API key on the free tier and start enriching your AI workflows today.

Top comments (0)