Cursor
Cursor can call CampaignStack’s MCP server from its agent chat. Once connected, you can ask it to pull a lead list into a file you are working on, draft a workflow graph next to the code that generates it, or check why a lead never entered a workflow, without leaving the editor.
Cursor reads MCP servers from a JSON file. Use ~/.cursor/mcp.json to make CampaignStack available in every project, or .cursor/mcp.json inside one project to keep it there.
Connect with an API key
Section titled “Connect with an API key”-
Create a key
In CampaignStack, open Settings > Personal API keys and create a user key (
csu_). Pick only the scopes you need: Cursor lists only the tools a key can call, so a key withleads:readandworkflows:readgives the agent a short, read-only tool list, while a key with every scope shows the whole catalog. -
Put the key in your environment
Keep the key out of the config file, especially a project file that might be committed. Add it to your shell profile:
Terminal window export CAMPAIGNSTACK_API_KEY="<paste your key>"Replace
<paste your key>, angle brackets included, with the key. Restart Cursor from a shell that has the variable, so it can read it. -
Add the server
Create or edit
~/.cursor/mcp.json:{"mcpServers": {"campaignstack": {"url": "https://mcp.campaignstack.io/mcp","headers": {"Authorization": "Bearer ${env:CAMPAIGNSTACK_API_KEY}"}}}}Cursor fills in
${env:CAMPAIGNSTACK_API_KEY}when it connects. You can paste the key in place of the variable, but then never commit that file. -
Check the connection
Open Cursor’s settings and find the list of MCP servers:
campaignstackshould be listed and switched on. Then ask the agent:Use CampaignStack’s whoami tool and tell me which workspaces this key reaches.
It should call
campaignstack_whoamiand list your workspaces.
Connect with OAuth instead
Section titled “Connect with OAuth instead”Cursor also supports MCP sign-in, and the CampaignStack server accepts it. Add the server with its URL only:
{ "mcpServers": { "campaignstack": { "url": "https://mcp.campaignstack.io/mcp" } }}When Cursor connects, it opens CampaignStack’s consent screen in your browser. Approve it and Cursor stores the sign-in. An OAuth connection carries every permission a person can grant (reading, editing and sending), while an API key carries only the scopes you chose, so prefer a key when you want the agent limited to reads. Disconnect an OAuth sign-in from Settings > Connected apps. Authentication explains both methods in full.
Choosing a workspace
Section titled “Choosing a workspace”A user key reaches every workspace you belong to. If that is one workspace, the agent never needs to name it. If it is several, a call without a workspaceId fails and the error lists them, so the agent will ask you which one. To skip the question, say it up front: “In the Acme workspace, list the leads in the Q1 founders list.” A workspace key (cs_) is tied to one workspace and needs no choice at all.
Approvals
Section titled “Approvals”Cursor asks before it runs an MCP tool, and shows the arguments when you expand the call. Read them for anything that acts: a tool that sends a message, a connection request or a comment reaches a real person on your LinkedIn account the moment it succeeds. Read-only tools (get_*) are safe to approve freely; Cursor’s run modes let you allow them without a prompt.
Nothing the agent does can raise a sending limit. Sends still go through the daily limits and review steps set in the app, and a refused send comes back with the reason.
What to ask for
Section titled “What to ask for”Cursor’s agent works best on tasks that mix CampaignStack data with files in your project:
- “Read the leads in my ‘Fintech CTOs’ lead list and write them to
leads.csvwith name, title, company and LinkedIn URL.” - “Here is a workflow graph in
workflow.json. Check every node against CampaignStack’s node vocabulary and tell me what would fail validation.” - “Why didn’t Jane Doe enter the ‘Q1 founders’ workflow?” (uses
campaignstack_diagnose_workflow_sourcing) - “Show me the drafts waiting for review in the Acme workspace, and suggest a shorter version of each.”
The tool reference lists every tool by area.
Troubleshooting
Section titled “Troubleshooting”The server shows an error or no tools. Open the Output panel, choose MCP Logs from the dropdown, and look for the CampaignStack entry. A 401 means the key was not sent or was not accepted, and its message says which: an example key left in place, a value that is not a key (often the variable was not set in the environment Cursor was started from), a revoked key, or a key that is not recognised.
A tool you expected is missing. The key does not have the scope it needs, or the feature is not turned on for the workspace. Check the scope on the scopes page and create a key that has it.
Every call fails asking for a workspace. Your key reaches several workspaces, and the error lists them. Name the workspace in your request, or use a workspace key.
Calls are refused for rate limit. A key may make 30 writes and 120 reads a minute. An agent looping over many records hits this first; ask it to batch the work, since most edit tools take several operations in one call.