Building a Lead Generation Agent in Cursor with MCP
Cursor isn't just for writing code. With the Leadloadz MCP server, you can find and verify B2B leads without ever leaving your editor — using the same Chat and Composer you already use to ship features.
This guide shows developers how to set it up and use it.
Why Cursor + Leadloadz for Lead Gen
- Never leave your IDE — prospect while you build.
- Natural language queries in Chat or Composer.
- Programmatic follow-through — have the agent find leads *and* write the script to act on them.
Step 1: Get Your API Token
1. Open the Leadloadz dashboard → API & Tokens.
2. Create a token and copy it.
Step 2: Add the MCP Server in Cursor
Open Settings → MCP → Add Server and provide:
{
"mcpServers": {
"leadloadz": {
"command": "npx",
"args": ["-y", "@leadloadz/mcp-server"],
"env": {
"LEADLOADZ_API_TOKEN": "your_token_here"
}
}
}
}Cursor will start the server and expose its tools to the agent.
Step 3: Use It in Cursor Chat
Open Chat (Cmd/Ctrl+L) and ask:
- "Find me 15 CTOs at healthtech startups."
- "Verify these emails and tell me which ones are valid."
Results appear inline, ready to copy or act on.
Step 4: Use It in Composer
Open Composer (Cmd/Ctrl+I) for multi-step work:
- "Find leads for my outreach campaign, then build a script that formats them as CSV for my sending tool."