Cursor + AgentLine
Give your Cursor agent its own phone number
Cursor already edits the repo. Add AgentLine and it can provision a number, place a call, and read the transcript from the same session that writes your app.
One skill file
Point Cursor at https://agentline.cloud/skill.md or add the MCP server in ~/.cursor/mcp.json. After AGENTLINE_API_KEY is set, 'call this number' is a normal tool use.
Get yourself a phone number and call me. Follow https://agentline.cloud/skill.mdWhy give Cursor a phone number
MCP or skill, your choice
Use the skill file, or https://api.agentline.cloud/mcp with a bearer header. Same API underneath.
Calls from the repo you are already in
Cursor can create the agent, buy a number, and dial as part of the same session that ships the feature.
Cloud agents included
The same skill works in local Cursor and in Cursor cloud agents. The number follows the agent, not the laptop.
Set up Cursor
How the skill and the service land on this runtime.
1. Add the MCP server
Add this to ~/.cursor/mcp.json (or Settings → MCP), then restart Cursor.
{
"mcpServers": {
"agentline": {
"command": "npx",
"args": ["-y", "mcp-remote@latest", "https://api.agentline.cloud/mcp", "--header", "Authorization: Bearer $AGENTLINE_API_KEY"]
}
}
}2. Install the relay service
For live inbound turns inside Cursor terminal sessions. Cursor has no built-in harness, so --handler must be a shell command that reads a caller prompt on stdin and prints the reply — without it the relay installs but cannot answer calls.
python -c "import urllib.request; urllib.request.urlretrieve('https://api.agentline.cloud/static/agentline_relay.py','agentline_relay.py')"
python agentline_relay.py install --agent-id agt_xxx --runtime custom --handler "YOUR_HANDLER_COMMAND"FAQ
Does AgentLine work with Cursor?
Yes. Add the skill or the MCP server, set AGENTLINE_API_KEY, and ask Cursor to buy a number and call you.
Where do I put the MCP config?
~/.cursor/mcp.json, or Settings → MCP. Use the bearer header with your AgentLine API key.
Can Cursor handle inbound calls live?
With the persistent relay installed, live utterances reach the runtime. A public webhook is the fallback.