How to Manage Leads in Cursor: Script Exports and Build Follow-Up Sequences With an MCP Server
29 November 2026 · 7 min read
Short answer: to manage leads in Cursor, add a lead source as an MCP server in mcp.json. For Tapuffin, point a server entry at https://tapuffin.com/api/mcp with an Authorization header holding your API key. Cursor's agent can then list and search leads, pull the CSV export and write the scripts that turn it into imports and follow-up sequences.
Cursor is not where most people would look at a lead list. It is where RevOps and developers build the plumbing around one: mapping a CSV to CRM columns, writing the sequence logic, checking which events produce leads that convert. Having the live lead data in the agent's reach turns that from copy-and-paste into one conversation.
Why an MCP server and not a CSV download
A CSV you download is stale the moment someone scans another badge. The Tapuffin MCP server answers from the current data every time the agent calls it, and it applies the same visibility rules as the dashboard, so a script you write as a team admin sees team leads and a colleague's key sees only their own. Setup is in how to connect Tapuffin to Cursor.
Useful jobs for the agent
- Shape an import. "Call export_leads_csv for scope team since 2026-11-17, then write a Node script that maps it to HubSpot's contact import columns and splits first and last names."
- Build a follow-up sequence. "Group my MEDICA leads by job title and write a three-step email sequence per group as Markdown files in sequences/."
- Check the data. "List leads without an email address and suggest which ones we could enrich through LinkedIn."
- Report. "Use lead_stats for the last 90 days and write a small chart script for leads per day per colleague."
- Wire a nudge. With a key that may send nudges: "Preview a nudge to everyone who saved my card after MEDICA, then send it once I say yes."
Prompts to copy
- "Search my leads for 'radiology' and give me a JSON array of name, company and email."
- "Which leads from MEDICA did I not follow up yet? Write them to a CSV."
- "Compare this week's booth leads with last week's by company."
- "Nudge everyone who saved my card after MEDICA with: Slides from our stand are on my card."
Keys and safety
- Create a separate key per machine or project under Dashboard → AI assistants, so you can revoke one without breaking the others.
- Keys are read-only unless you tick Can send nudges when you create them. The list shows which ones can.
- Keep the key out of the repository: Cursor reads
${env:NAME}in headers (Cursor docs), so putTAPUFFIN_API_KEYin your shell profile. - Keys only go in the Authorization header; Tapuffin refuses a key in the URL.
Frequently asked questions
Does this cost extra?
No. The MCP server is part of every Tapuffin plan. On Free you have up to 3 contacts; CSV export and nudges need a paid plan.
Can I use OAuth in Cursor instead of a key?
Cursor's docs say it supports OAuth with dynamic client registration for remote servers, and Tapuffin supports that. We test the API key route; it is the simplest for scripts. See the MCP page.
Can the agent change or delete leads?
No. There are no tools for editing or deleting contacts. The only action is sending a nudge, and only with a key that allows it.
Does it work in other editors?
Any MCP client that speaks Streamable HTTP and can send an Authorization header works, including Claude Code. For chat apps, see ChatGPT and Claude.
Tapuffin