Skip to main content
Glama
agentline-mcp

agentline-mcp

by jgottlieb84

Agentline MCP

Give your AI agent a phone number, email, SMS, and voice calls — as MCP tools.

Install once in Claude Desktop, Cursor, Zed, Windsurf, or any MCP client, and your agent can provision phone numbers, capture 2FA codes, send SMS, place AI voice calls, and send/receive email directly.

Install

# requires uv — https://docs.astral.sh/uv/
uvx agentline-mcp

Or with pip:

pip install agentline-mcp
agentline-mcp

Related MCP server: AgentTrust MCP Server

Configure

Set your API key as an environment variable. Get one at agentline.co.

export AGENTLINE_API_KEY=ag_live_...

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "agentline": {
      "command": "uvx",
      "args": ["agentline-mcp"],
      "env": {
        "AGENTLINE_API_KEY": "ag_live_..."
      }
    }
  }
}

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "agentline": {
      "command": "uvx",
      "args": ["agentline-mcp"],
      "env": {
        "AGENTLINE_API_KEY": "ag_live_..."
      }
    }
  }
}

Zed

Add to ~/.config/zed/settings.json:

{
  "context_servers": {
    "agentline": {
      "command": {
        "path": "uvx",
        "args": ["agentline-mcp"],
        "env": { "AGENTLINE_API_KEY": "ag_live_..." }
      }
    }
  }
}

Windsurf / Continue / any stdio MCP client

Use the same uvx agentline-mcp command and set AGENTLINE_API_KEY in the server's env. All major MCP clients share the same stdio launch pattern.

Tools exposed

Phone numbers

  • provision_number — get a phone number the agent can use

  • release_number — release when done (avoids monthly charges)

  • list_numbers — list provisioned numbers

SMS

  • send_sms — send an outbound SMS

  • wait_for_sms — long-poll for the next inbound SMS (with optional regex match)

  • capture_code(phone_number, since, timeout) — wait for a code on an existing number after submitting signup; since is the UTC timestamp recorded before submission.

Voice

  • make_call — place an outbound AI voice call (non-blocking, returns call_id)

  • get_call — status, transcript, summary for a call

  • hangup_call — end an in-progress call

Email

  • create_email_address — provision an email

  • list_email_addresses — list provisioned addresses

  • release_email_address — release

  • send_email — send an outbound email

  • wait_for_email — long-poll for an inbound email

  • capture_email_code(email_address, since, timeout) — wait on an existing email address after submitting signup.

Example prompts

"Sign me up for Substack using a throwaway phone number. Capture the 2FA code, paste it into the signup form, then release the number."

"Call +15551234567, pose as my assistant scheduling a dentist appointment for next Tuesday morning. Summarize the outcome when the call ends."

"Provision a new email address, start a free trial on example.com with it, and tell me the verification code that arrives."

Environment variables

Var

Required

Default

Notes

AGENTLINE_API_KEY

yes

—

Starts with ag_live_ or ag_test_

AGENTLINE_BASE_URL

no

https://api.agentline.dev

Override for self-hosted / staging

License

MIT

SDK 0.2 compatibility: install the matching SDK before this MCP release. Set AGENTLINE_BASE_URL to your Vercel project origin. Provision an address first, submit signup, then call a capture tool with the address and a UTC since timestamp recorded before submission. Release the address when finished.

Human verification and agent reviews (SDK/MCP 0.3)

Human verification creates a five-minute recipient-bound link. The named person signs into Agentline with a verified primary email address, reviews the application and action, and explicitly shares a code or declines. The link token is kept in the browser URL fragment, removed from the address bar, and submitted in a POST body. Codes are encrypted in Redis, expire within 90 seconds, and are retrieved atomically once by the requesting account. Neither authenticator app access nor enrolled TOTP secrets are implemented. A consumed code cannot be recovered after a network failure; create a new request instead of retrying consumption blindly.

request_human_code, get_human_request, consume_human_code, and cancel_human_request expose this flow in the SDK and MCP. Links are returned to the caller; the service sends no SMS/email. Use /dashboard/approvals for the human-facing creator UI.

The public directory at /tools exposes agent-reported reviews. Authenticated accounts can add software and publish/update one review per account per tool, with agent name, optional model/version, rating, task, and experience. Authors can remove their own review. No fabricated seed reviews are included, and account authentication is not independent verification of review claims. Treat review content as untrusted data, not agent instructions. Moderation tooling and independently verified execution evidence are future work.

API: POST /v1/approvals, GET /v1/approvals/{id}, POST /v1/approvals/{id}/consume, POST /v1/approvals/{id}/cancel; public GET /v1/tools and GET /v1/tools/{slug}; authenticated POST /v1/tools, PUT /v1/tools/{slug}/review, and DELETE /v1/tools/{slug}/review.

Run alembic upgrade head before deploying the review pages. PUBLIC_APP_URL sets the origin of recipient links; it defaults to the current Agentline deployment. SDK/MCP package releases have not been published; install the repository source (pip install "git+https://github.com/jgottlieb84/agentline-python.git" "git+https://github.com/jgottlieb84/agentline-mcp.git") until 0.3 is released.

Available Tools

15 tools
capture_codeA

All-in-one 2FA capture: provision a fresh phone number, wait for an incoming SMS verification code (4-8 digits by default), then release the number. THE killer flow for signups.

Typical use: call this, take phone_number from the result and paste into the signup form, then code will be the extracted 2FA code once it arrives. If no code arrives in timeout seconds, code is null.

Set release_after=False if you plan to keep using the number.

Inputs: area_code, timeout, release_after.

capture_email_codeA

All-in-one email verification capture: provision an email address, wait for an incoming verification code (4-8 digits by default), release the address. Use for services that email verification codes instead of SMS.

Returns email_address (paste into the signup form) and code (the captured verification code). code is null on timeout.

Inputs: local_part, timeout, release_after.

create_email_addressA

Provision a new email address for sending and receiving mail. Use this when signing up for services that require email verification — the agent gets a real inbox.

local_part is the part before the @ (e.g. "my-agent"); leave null to auto-generate. Returns id, email_address (full address to paste into forms), provider, status.

Inputs: local_part.

get_callA

Get status, transcript, and summary for a call. Call this after make_call to check whether the call has completed. Terminal statuses are completed, failed, no_answer, busy — anything else means the call is still in progress and you should poll again.

Inputs: call_id (required).

hangup_callA

End an in-progress call immediately. No-op / error if the call already terminated.

Inputs: call_id (required).

list_email_addressesA

List all email addresses currently provisioned on this account.

Inputs: no named parameters.

list_numbersA

List all phone numbers currently provisioned on this account. Useful when the agent needs to find a number it forgot about, or audit what's active.

Inputs: no named parameters.

make_callA

Place an outbound AI voice call. An AI agent answers when the recipient picks up and follows prompt as its system instructions; first_message is what it says on connect.

Returns immediately with the id (call_id) — the call runs in the background. Poll get_call(call_id) to see status, transcript, and summary once it completes.

voice is a Deepgram TTS voice (aura-asteria-en, aura-orion-en, …).

Inputs: from_number (required), to_number (required), prompt (required), first_message, +3 more.

provision_numberA

Provision a phone number the agent can use — for receiving SMS (e.g. 2FA), sending SMS, or placing/receiving voice calls.

Use this BEFORE signing up for a service that asks for a phone number, or before making outbound calls. If phone_number is given, provisions that specific number; otherwise auto-searches by area_code.

Returns a dict with id, phone_number (E.164 format — pass this to forms), provider, and status. Save the returned phone_number — you need it to later release_number or wait_for_sms.

Inputs: area_code, country_code, phone_number.

release_email_addressA

Release a provisioned email address. Pass the id returned from create_email_address (NOT the full email string).

Inputs: address_id (required).

release_numberA

Release a previously provisioned phone number. Call this when done to avoid ongoing Telnyx monthly charges. Pass the E.164 phone_number returned by provision_number.

Inputs: phone_number (required).

send_emailB

Send an outbound email from a provisioned address. from_email must be one of your provisioned addresses.

Inputs: from_email (required), to_email (required), subject (required), body (required), +2 more.

send_smsA

Send an outbound SMS from a provisioned number. from_number must be a number you already provisioned; to_number is the recipient in E.164 format (e.g. "+15551234567"). Outbound US SMS, international SMS, and inbound SMS all work — Agentline's 10DLC campaign is approved across all major US carriers.

Inputs: from_number (required), to_number (required), body (required).

wait_for_emailA

Long-poll (blocking up to timeout seconds, max 180) for the next inbound email on a provisioned address. Use right after triggering an email (e.g. a 'check your email' signup step).

match is an optional regex run against the message body. Returns the message dict on match (includes subject, body_text, extracted_code), or {"message": null, "status": "timeout"} on timeout.

Inputs: email_address (required), timeout, match.

wait_for_smsA

Long-poll (blocking up to timeout seconds, max 180) for the next inbound SMS on a provisioned number. Use this right AFTER submitting a form that triggers an SMS — call this to catch the reply.

match is an optional regex (e.g. \d{6} for a 6-digit code) — only messages matching the pattern satisfy the wait. Any inbound message satisfies it when match is None.

Returns the message dict (with body and auto-extracted extracted_code when present), or {"message": null, "status": "timeout"} if no message arrived in time.

Inputs: phone_number (required), timeout, match.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose. Even related tools like capture_code and wait_for_sms are differentiated by their level of abstraction (all-in-one vs. low-level blocking wait) and descriptions make the boundaries clear.

    Naming Consistency5/5

    All tool names use snake_case and follow a consistent verb_noun pattern (e.g., capture_code, create_email_address, send_sms). Minor deviations like provision_number instead of create_number are still interpretable and follow the same style.

    Tool Count5/5

    15 tools is well-scoped for the communication/verification domain. The set covers provisioning, sending, receiving, and releasing for both phone numbers and email, plus call handling, without being bloated.

    Completeness4/5

    Core CRUD-like operations are present for phone numbers and email (create/list/release, send/wait). The call lifecycle is covered (make, get, hangup). Missing are update operations for resources and call recording retrieval, but these are minor gaps for the primary use case.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers