Claude Code and Cursor both speak MCP over HTTP, so connecting either one to Sprootal takes one command or one JSON file. From then on your coding agent can build campaigns, read replies and draft answers on LinkedIn.
GTM engineers often live in an editor already: the scripts that enrich lists, the database that holds the signals, the agent that ties them together. This guide adds Sprootal's MCP server to Claude Code and to Cursor, so the same agent can act on LinkedIn. Everything below was checked against both tools' documentation in November 2026.
What you need
- A Sprootal workspace. The Sandbox is free and includes the whole MCP server.
- Claude Code or Cursor, recent enough to support remote MCP servers over HTTP.
- Either a browser for the OAuth sign-in, or a scoped API key from Settings → API keys in Sprootal. Test keys (
lg_test_…) behave exactly like live ones.
The server lives at https://sprootal.com/api/mcp and speaks Streamable HTTP. It supports OAuth 2.1 with dynamic client registration and PKCE, so neither tool needs a client ID.
Claude Code
Add the server with OAuth
claude mcp add --transport http sprootal https://sprootal.com/api/mcp
Start Claude Code, run /mcp, choose sprootal and finish the sign-in in the browser. On Sprootal's consent screen you choose which scope groups to grant. From the shell, claude mcp login sprootal does the same.
Or add it with a key
claude mcp add --transport http sprootal https://sprootal.com/api/mcp \
--header "Authorization: Bearer lg_live_your_key_here"
If a header is set and the server rejects it, Claude Code reports a failed connection and does not fall back to OAuth. Remove the header to use OAuth instead.
Pick a scope
--scope local is the default and keeps the server private to you in this project. --scope user makes it available in all your projects. --scope project writes a .mcp.json file in the project root that you can commit for the team. Keep the key out of that file with an environment variable:
{
"mcpServers": {
"sprootal": {
"type": "http",
"url": "https://sprootal.com/api/mcp",
"headers": { "Authorization": "Bearer ${SPROOTAL_API_KEY}" }
}
}
}
Each teammate approves a project server the first time Claude Code starts in that folder.
Check, sign out, remove
claude mcp list
claude mcp get sprootal
claude mcp logout sprootal
claude mcp remove sprootal
Removing a server deletes the stored tokens on your machine. Run logout first if you also want them revoked at Sprootal.
Cursor
Cursor reads MCP servers from .cursor/mcp.json in a project, or from ~/.cursor/mcp.json for every project. A remote server needs only a url.
With OAuth
{
"mcpServers": {
"sprootal": { "url": "https://sprootal.com/api/mcp" }
}
}
Cursor reads Sprootal's protected resource metadata, registers itself as a public client and signs you in with PKCE. Enable or disable the server from Customize in the Cursor sidebar.
With a key
{
"mcpServers": {
"sprootal": {
"url": "https://sprootal.com/api/mcp",
"headers": { "Authorization": "Bearer ${env:SPROOTAL_API_KEY}" }
}
}
}
Cursor resolves ${env:NAME} in url and headers, so the key stays in your environment and out of the repository.
First prompts that work
The server has 122 tools in 16 groups. Neither editor needs all of them at once. The agent can call list_toolsets and get_toolset_tools to load only the group it needs. Start with a read:
Read the Sprootal team summary and list my connected senders with
today's remaining invitation allowance for each.
Then something useful:
Read contacts.csv in this repo. For each row with a LinkedIn URL,
create or update the contact in Sprootal on the list "Q1 founders".
Then create a draft campaign for that list: connection request without
a note, wait for acceptance, then the first message in messages/q1.md.
Do not activate it.
Creating a campaign never starts it. A person sets the senders and switches it on, and from then on the queue engine holds the pace. For replies, ask the agent to write drafts. They wait in the master inbox until a person approves them.
Limits worth knowing
- Sessions end after 30 minutes idle or 4 hours in total. Both tools reconnect on their own.
- Up to 5 concurrent sessions per key, and request bodies up to 256 KB.
- Rate limits are shared with the REST API and reported in
X-RateLimit-*headers. - Deleting data over MCP needs a preview and a one-time confirmation token.
Common questions
Should I use OAuth or a key?
OAuth for a person working in the editor, because the consent screen lets them grant only the scope groups they need. A key for scripts and headless runs, scoped to the job and stored in an environment variable.
Can the agent send LinkedIn messages from my editor?
It writes drafts by default, and a person approves them in the inbox. Sending without review needs a key created by a workspace owner, and we recommend keeping it for narrow cases.
Does this work with other MCP clients?
Yes. Any client that speaks MCP over Streamable HTTP connects the same way. The Claude and MCP guide covers the Claude apps.


