Start freePortal
Docs

How to Manage Your Voice Agent from Claude Code or Cursor with an MCP Server

Connect Claude Code or Cursor to echowin's hosted MCP server with an API key, then read calls, fix knowledge gaps and run outbound calls from one prompt.

echowin runs a hosted MCP server at https://mcp.echo.win/mcp. Create an API key in echowin, add the server to Claude Code, Cursor or any MCP client with that key as a bearer token, and your coding agent can read your voice agent’s calls and chats, search and add to its knowledge base, read and rewrite its instructions, manage contacts and run outbound calls, all from plain-language prompts.

This guide covers the setup, the jobs it handles well, and the limits we found in the server’s code (as of November 2026).

What you need

  • An echowin agent. Building and testing agents is free; live calls are billed per minute (see pricing).
  • An echowin API key (Step 1). Creating one needs a workspace owner or admin.
  • Claude Code, Cursor, Windsurf or another MCP client that can connect to a remote server over Streamable HTTP and send a header with your key.
  • For outbound calls only: a phone number on the agent, outbound calling turned on for your team, and a credit balance.

What your coding agent can do through the server

By default the server offers the tools below. Which of them your coding agent sees depends on the key: a read-only key sees only the read tools.

Area What it can do
Your account Confirm which team the key belongs to, its credit balance and plan; read usage and call analytics
Agents List your agents, read an agent’s instructions, replace them, create an agent, change an agent’s settings
Knowledge base Search an agent’s knowledge base, add a question and answer
Calls List calls with filters, open one with its transcript, timeline, outcome and recording link
Chats List and open web chat and browser voice conversations
Contacts Find contacts, open one with its notes, create a contact, add a note
Phone numbers List your numbers and which agent answers each
Outbound Call one person, or create a campaign from a list, start it, pause it and check who was reached
Agencies For an agency key, list your client teams

The server can also offer more tools, grouped into sets such as agents, numbers, contacts, campaigns, knowledge, workflows and analytics. Add ?toolsets= to the server address to pick them, for example https://mcp.echo.win/mcp?toolsets=core,contacts, or ?toolsets=all for every tool the key may use. A short list is easier for a model to use well, so start with the default.

Step 1: Create an API key

  1. In echowin, open Settings and go to API keys.
  2. Click Create API key. Give it a Name, such as “Claude Code”.
  3. Choose the Access: Read only (all resources), Full access, or Pick actions to list exactly the actions it may take. Read only is enough for reviewing calls. Updating instructions, adding knowledge and running outbound calls need more.
  4. Choose when it Expires: in 30 days, 90 days, a year or never, and create it.
  5. Copy the key right away. echowin shows it once and won’t show it again.

Give the key only the access it needs, and treat it like a password. Make one key per tool, so you can revoke one without breaking the others.

Step 2: Add the server to your coding agent

Claude Code. Run this in your terminal, with your key in place of your-api-key:

claude mcp add --transport http echowin https://mcp.echo.win/mcp \
  --header "Authorization: Bearer your-api-key"

Cursor, Windsurf and other MCP clients. Add this to the client’s MCP config file (in Cursor, .cursor/mcp.json in a project or ~/.cursor/mcp.json for every project):

{
  "mcpServers": {
    "echowin": {
      "url": "https://mcp.echo.win/mcp",
      "headers": { "Authorization": "Bearer your-api-key" }
    }
  }
}

Keep the key out of any config file you commit to a repository.

Step 3: Check the connection

Start a new session and ask:

Which echowin team is this key for, and what's the balance?

The agent should answer with your team name and balance. If the key is wrong, the server refuses the connection and says so, instead of connecting and failing later.

Step 4: Give it a real job

The server is built around jobs, not single lookups. These prompts work well:

Fill the knowledge gaps from this week’s calls.

Look at my agent's calls from the last 7 days. Find the questions
callers asked that the agent couldn't answer. For each one, check the
knowledge base first, then show me a proposed answer. Add only the
answers I approve.

The agent lists the calls, reads each transcript, searches the knowledge base and adds the answers you approve. Each knowledge base search costs 1 credit, so a good agent batches questions into fewer searches.

Tune the instructions.

Read my agent's current instructions and save a copy to
instructions-backup.md. Then rewrite the greeting so it says the
business name first. Show me the full new version before you save it.

Saving replaces the whole set of instructions, and the change is live on calls and chats right away. Ask for a local copy first, as in the prompt above, so you can put the old version back.

Work the CRM.

Find every contact who called this week and isn't in the CRM yet.
Create them with the tag "new-caller" and add a note with what they
called about.

Step 5: Run outbound calls (optional)

Outbound calling has to be turned on for your team first; contact echowin support to enable it. Then:

Create a campaign for my "Quotes" agent from leads.csv. The agent
should call each person back about their quote request. Call
Monday to Friday, 9:00 to 17:00 Eastern. Show me the count and the
first 5 rows before you start it.

How campaigns work, from the server’s own tool descriptions:

  • Your agent calls people one at a time, from its own phone number, inside the calling hours. If you don’t set hours, the default is 9:00 to 20:00, Monday to Saturday, in the agent’s time zone.
  • People are added up to 100 at a time, and a campaign holds up to 5,000. Invalid, repeated and do-not-call numbers are skipped and reported, so the agent can fix and resend only those.
  • Each person’s name and custom details (for example “Appointment: Tuesday 3pm”) are passed to the agent on that call.
  • Pausing stops new dials; a call in progress finishes.
  • Starting a campaign or calling one person is marked as an action that can’t be undone, so clients that respect that, such as Claude Code, ask you before they start.

Only call people who agreed to be called. Our AI outbound calling guide covers consent and cost.

Troubleshooting

“Missing echowin API key” or “The echowin API key is invalid”

The header is missing or the key is wrong, expired or revoked. Check that the header reads Authorization: Bearer <key>. Clients that can only set custom headers can send the key as X-API-Key instead. If in doubt, create a new key under Settings, API keys. (The server’s message still points to “Build > Integrations > API Keys”, which is the old location.)

“Outbound calling is not enabled for this team”

Outbound calling is turned on per team by echowin. Contact support, then try again. The server checks this when the campaign is created, so you don’t upload a list you can’t call.

A tool is missing, or says you’re not permitted

The server lists only the tools your key may use. Check the key’s Access under Settings, API keys, or create a key with more access.

“This agent has no phone number to call from” or “Not enough credits to place a call”

Connect a number to the agent (on its Connect tab) or add credit, then ask the agent to start the campaign again. The campaign and its list are kept.

“The agent has no time zone”

Tell the agent which time zone to call in, for example “America/Denver”. Calling hours apply in that time zone.

“Rate limited by the echowin API”

Wait a few seconds and retry. Ask for fewer, larger requests (one call list with filters instead of many small ones).

Claude Code can’t reach the server

With sandboxing on, allow the domains in .claude/settings.json:

{ "sandbox": { "network": { "allowedDomains": ["echo.win", "mcp.echo.win"] } } }

FAQ

Can I sign in with OAuth instead of an API key?

The server supports OAuth sign-in for clients that can use it, but this guide uses an API key because it works the same in every client.

Does the MCP server store my key?

No. It checks your key on each request, so every action has exactly the permissions of that key and the same limits.

Can an agency manage its clients’ agents with one key?

Yes. A key that belongs to an agency’s owner team can name a client’s team on any request, so one coding agent session can review calls or update knowledge for each client in turn. Other keys can only reach their own team.

What if my tool doesn’t support MCP?

Use the API directly, or see the AI integration page. For a workflow tool such as n8n, see how to connect an AI phone agent to n8n.

Build your voice agent free at echo.win.