Skip to main content
Glama

@anima-labs/mcp

MCP (Model Context Protocol) server for Anima -- 58 tools across 10 categories for AI agent communication, identity, and security.

Hosted vs local (which one do I want?)

Anima runs a hosted MCP gateway at https://mcp.useanima.sh/mcp -- nothing to install, always current, and it carries the fullest tool surface (it adds inbox management and other tools beyond this package's 54). If your client speaks remote MCP (Cursor, VS Code, Claude Code --transport http), point it there with Authorization: Bearer ak_... and you're done. See the MCP docs.

This npm package is the stdio bridge for clients without remote-MCP support and for pinned/air-gapped configs. Same platform, same auth, smaller tool set.

anima setup-mcp install --all            # hosted gateway (default)
anima setup-mcp install --all --mode stdio  # this package

Related MCP server: domani

Installation

npm install @anima-labs/mcp
# or
bun add @anima-labs/mcp

Quick Start

# stdio mode (default -- for Claude Desktop, Cursor, Windsurf, etc.)
npx @anima-labs/mcp

# HTTP mode (for web integrations)
npx @anima-labs/mcp --http --port=8014

# Selective tool loading (only register specific groups)
npx @anima-labs/mcp --tools=email,vault,phone

Environment Variables

Variable

Required

Description

ANIMA_API_URL

No

API server URL (default: https://api.useanima.sh)

ANIMA_API_KEY

Yes

Agent API key (ak_ prefix)

ANIMA_MASTER_KEY

No

Master key (mk_ prefix) for admin tools

Selective Tool Loading

Use the --tools flag to load only the tool groups you need. This reduces the tool count exposed to the LLM, which can improve tool selection accuracy and reduce token usage.

npx @anima-labs/mcp --tools=email,vault,phone

Available tool groups:

Group

Description

workspace

Account overview and usage rollups

agent

Agent CRUD and address/identity management

email

Email send/receive, threads, drafts, attachments

domain

Custom sending domains: DNS, verification, zone files

phone

Phone number provisioning and release

phone_call

Outbound calls, transcripts, recordings, voices

sms

SMS/MMS send and conversation history

provisioning

Ask your human owner for a vault or phone number

vault

Credential vault management and TOTP

webhook

Webhook subscription management and testing

If --tools is not provided, all groups are registered (current default behavior).

HTTP Mode

Run the MCP server over HTTP instead of stdio for web integrations:

npx @anima-labs/mcp --http --port=8014

The server listens at http://localhost:8014/mcp and expects a Bearer <api-key> authorization header on each request.

Configuration Templates

Claude Desktop

~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "anima": {
      "command": "npx",
      "args": ["-y", "@anima-labs/mcp"],
      "env": { "ANIMA_API_KEY": "ak_..." }
    }
  }
}

With selective loading:

{
  "mcpServers": {
    "anima": {
      "command": "npx",
      "args": ["-y", "@anima-labs/mcp", "--tools=email,vault,phone"],
      "env": { "ANIMA_API_KEY": "ak_..." }
    }
  }
}

Cursor

.cursor/mcp.json:

{
  "mcpServers": {
    "anima": {
      "command": "npx",
      "args": ["-y", "@anima-labs/mcp"],
      "env": { "ANIMA_API_KEY": "ak_..." }
    }
  }
}

Windsurf

.windsurf/mcp.json:

{
  "mcpServers": {
    "anima": {
      "command": "npx",
      "args": ["-y", "@anima-labs/mcp"],
      "env": { "ANIMA_API_KEY": "ak_..." }
    }
  }
}

Tool Reference

Workspace (2 tools)

Tool

Description

account_overview

Single-call workspace snapshot: context, send-capability flags, inventory counts, and blockers

usage_overview

Usage rollup for a billing period

Agent (5 tools)

Tool

Description

agent_create

Create a new agent, optionally with metadata and an initial address

agent_get

Get full detail for an agent: settings, metadata, status, addresses, and identities

agent_list

List agents in the current account context with cursor pagination

agent_update

Update an agent's name or metadata, and add/update/delete an address

agent_delete

Delete an agent by ID

Email (13 tools)

Tool

Description

email_send

Send a new outbound email from the agent mailbox

email_get

Get full detail for a single email by ID, including metadata and body

email_list

List emails newest-first with cursor pagination, optionally scoped to one agent

email_search

Search email by meaning (semantic vector search) or literal keyword

email_reply

Reply to an existing email thread with correct threading headers

email_forward

Forward an existing email to another recipient

email_thread_get

Fetch all messages in one or more email threads

email_attachment_get

Get a temporary download URL for an email attachment

email_draft_create

Create a new email draft (composed but not sent)

email_draft_get

Get full detail for a single draft by ID

email_draft_list

List email drafts with optional filters

email_draft_send

Send a draft

email_draft_delete

Discard a draft

Domain (7 tools)

Tool

Description

domain_create

Register a custom sending domain in the workspace

domain_verify

Trigger a verification check after DNS records are configured

domain_get

Get full detail for a domain, including verification and config state

domain_list

List all domains connected to the current workspace

domain_update

Update mutable configuration on a domain

domain_delete

Delete a domain from the workspace

domain_zone_file

Get the full DNS zone file for a domain

Phone (3 tools)

Tool

Description

phone_number_list

List provisioned phone numbers, optionally filtered by agent

phone_number_provision

Provision a new phone number and assign it to an agent

phone_number_release

Release a provisioned phone number back to the carrier pool

Phone Call (6 tools)

Tool

Description

phone_call_create

Initiate an outbound phone call from an agent (returns a callId immediately)

phone_call_list

List phone calls with optional filters

phone_call_get

Get full detail for a call: status, duration, participants, AI summary, and quality score

phone_call_transcript_get

Get the full transcript with speaker labels, timestamps, and confidence scores

phone_call_recording_get

Get a time-limited download URL for a call recording (WAV)

voice_list

List available AI voices for placing phone calls

SMS (5 tools)

Tool

Description

sms_send

Send an SMS, or an MMS by passing mediaUrls

sms_get

Get full detail for a single SMS by ID (includes its threadId)

sms_list

List SMS messages with optional filters

sms_thread_list

List SMS conversations

sms_thread_get

Get a specific SMS conversation with message history

Provisioning (4 tools)

An agent cannot provision its own vault or phone number -- vault_provision and phone_number_provision are master-key-only, and an MCP session is authenticated as the agent. These tools file the ask instead; the owner decides in the Anima console.

Approve and decline are deliberately NOT exposed as tools. An MCP tool is something the model can decide to call, and a prompt-injected agent able to approve its own request could grant itself a billable phone number -- exactly the escalation the flow exists to prevent.

Tool

Description

provisioning_request_create

Ask your owner to provision a vault or phone number

provisioning_request_list

List requests you have filed and their status

provisioning_request_status

Check one request; a decline carries the owner's reason

provisioning_request_cancel

Withdraw a pending request you no longer need

Vault (8 tools)

Tool

Description

vault_provision

Provision a credential vault for an agent

vault_credential_list

List credentials in an agent vault with optional type filter

vault_credential_get

Get a single vault credential by ID

vault_credential_create

Create a new credential in an agent vault

vault_credential_update

Update an existing vault credential by ID

vault_credential_delete

Delete a credential from vault storage by ID

vault_credential_search

Search vault credentials by keyword across names and content

vault_credential_get_totp

Get the current TOTP code for a credential with a TOTP secret

Webhook (5 tools)

Tool

Description

webhook_set

Create or update a webhook subscription

webhook_get

Get a webhook subscription by ID

webhook_list

List webhook subscriptions with cursor pagination

webhook_delete

Delete a webhook subscription by ID

webhook_test

Send a test event to verify endpoint reachability and signature verification

Contributing: the contract gates

Every tool here is a thin client over the Anima REST API, which makes two lies easy to ship and nearly impossible to notice — both return a green 200:

  • a tool calling a route the API doesn't have, and

  • a tool advertising a parameter its route ignores (the API validates with Zod, which strips unknown input, so the server answers as if nothing was wrong and the model believes its filter was applied).

Two CI gates in src/__tests__/integration/contract-parity.test.ts make both impossible. They check src/tool-routes.ts — where each tool declares the routes it calls and any param it handles client-side — against src/__tests__/fixtures/contract-routes.json, a snapshot of the real @anima/contracts route surface.

Adding or changing a tool means updating its entry in src/tool-routes.ts. If a gate fails, fix the tool: editing the declaration to match a lie, or parking a param in clientParams, re-opens the exact hole the gates close.

Refreshing the snapshot (needs a checkout of the anima monorepo — it is private, so CI cannot do this for you):

bun run contracts:refresh -- --anima ../anima   # rewrite the snapshot
bun run contracts:check   -- --anima ../anima   # diff only; non-zero on drift

Community

Join the Anima Discord to ask questions in #mcp, share what you're building in #showcase, and stay up to date with releases in #announcements.

License

MIT

Available Tools

54 tools
account_overviewA
Read-onlyIdempotent

Single-call workspace snapshot: organization context, credential identity, send-capability flags (canSendEmail / canSendSms), inventory counts (agents, domains, phones), and active blockers. Strict superset of the legacy whoami + workspace_health pair. Use this before any non-trivial workflow to answer 'who am I and can I do X right now?' without paying a real send to find out.

Inputs: no named parameters. Returns: object

agent_createA

Create a new agent with optional metadata, and optionally attach an initial address. Use this when provisioning a new sending identity or automation actor. To add more addresses later, use agent_update.

Inputs: name (required), address, metadata. Returns: object

agent_deleteA
DestructiveIdempotent

Delete an agent by ID. Use this to remove deprecated or compromised agents that should no longer send messages. Cascades to attached addresses, email identities, and phone identities.

Inputs: id (required). Returns: id, deleted

agent_getA
Read-onlyIdempotent

Fetch full detail for a single agent by ID: settings, metadata, status, and the full addresses[] / emailIdentities[] / phoneIdentities[] lists. Use agent_list to browse multiple agents.

Inputs: id (required). Returns: object

agent_listA
Read-onlyIdempotent

List agents in the current account context with cursor pagination. Returns a lightweight per-agent record (addresses are NOT included to avoid N+1 round-trips). Use agent_get for full single-agent detail.

Inputs: limit, cursor. Returns: count, items, total, cursor, +2 more

agent_updateA

Update an agent's name or metadata, and/or add/update/delete an address. Use addAddress to attach a new address, updateAddress to change fields on an existing one (by addressId), deleteAddressId to remove one. Multiple field-level changes can be combined in a single call.

Inputs: id (required), name, metadata, addAddress, +2 more. Returns: object

domain_createA
Idempotent

Register a custom sending domain in the workspace so it can be configured for email traffic. Use this before DNS setup and verification.

Inputs: domain (required). Returns: object

domain_deleteA
DestructiveIdempotent

Delete a domain from the workspace when it is no longer needed. Use this to remove old or incorrect domain configurations.

Inputs: id (required). Returns: id, deleted

domain_getA
Read-onlyIdempotent

Fetch full detail for a single domain by ID, including verification and configuration state. Use domain_list to browse all domains.

Inputs: id (required). Returns: object

domain_listA
Read-onlyIdempotent

List every domain connected to the current workspace (unpaginated). Use this to audit configured sender domains and choose one for follow-up actions.

Inputs: no named parameters. Returns: count, items, total, cursor, +2 more

domain_updateA
Idempotent

Update mutable configuration on a domain. Currently the only updatable field is feedbackEnabled — toggle SES bounce and complaint feedback processing on or off.

Inputs: id (required), feedbackEnabled. Returns: object

domain_verifyA
Idempotent

Trigger a verification check for a domain after DNS records are configured. Use this to re-run DNS validation and update verification status.

Inputs: id (required). Returns: object

domain_zone_fileA
Read-onlyIdempotent

Get the full DNS zone file for a domain. Use this for complete DNS export or to verify all records are correctly configured.

Inputs: id (required). Returns: object

email_attachment_getA
Read-onlyIdempotent

Get a temporary download URL for an email attachment. Use this when you need direct file access for preview or download.

Inputs: id (required). Returns: object

email_draft_createA

Create a new email draft (composed but not sent). Drafts can be incomplete — missing recipients, subject, or body. Use email_draft_send later to actually deliver, or email_draft_delete to discard.

Inputs: agentId (required), cc, to, bcc, +7 more. Returns: object

email_draft_deleteA
DestructiveIdempotent

Discard a draft. Use this to remove drafts that are no longer needed. Use email_draft_send if you want to deliver instead.

Inputs: id (required). Returns: id, deleted

email_draft_getA
Read-onlyIdempotent

Fetch full detail for a single draft by ID. Use email_draft_list to browse drafts.

Inputs: id (required). Returns: object

email_draft_listA
Read-onlyIdempotent

List email drafts with optional filters. Returns lightweight draft records — use email_draft_get for full detail.

Inputs: limit, cursor, agentId. Returns: count, items, total, cursor, +2 more

email_draft_sendA

Send a draft. Atomically converts the draft to a delivered Message + deletes the draft row. The draft must have at least one recipient, a subject, and a body. Returns the newly-created Message.

Inputs: id (required). Returns: id, status, messageId

email_forwardA

Forward an existing email to another recipient by loading the original content first. Use this to share a prior message while preserving context.

Inputs: to (required), agentId (required), originalId (required), text, +1 more. Returns: id, status, messageId

email_getA
Read-onlyIdempotent

Fetch full detail for a single email by ID, including metadata and body. Use email_list to browse emails in a folder.

Inputs: id (required). Returns: object

email_listA
Read-onlyIdempotent

List emails with cursor pagination, optionally scoped to one agent. Returns lightweight per-email records — use email_get for the full body, or email_search to find a specific message by content. Ordering is not guaranteed: page with cursor rather than assuming the first page is the newest mail.

Inputs: limit, cursor, agentId. Returns: count, items, total, cursor, +2 more

email_replyA

Reply to an existing email thread by first loading the original message and setting threading headers. Use this when you need a proper in-thread response.

Inputs: text (required), agentId (required), originalId (required), html, +2 more. Returns: id, status, messageId

email_sendB

Send a new outbound email from the agent mailbox. Use this when you need to compose and deliver a message with optional CC, threading headers.

Inputs: to (required), body (required), agentId (required), subject (required), +6 more. Returns: id, status, messageId

email_thread_getA
Read-onlyIdempotent

Fetch all email messages in one or more threads. Pass id for a single thread or ids for multiple. Returns messages ordered within each thread. Uses the messages endpoint filtered by threadId + channel=EMAIL under the hood.

Inputs: id, ids, limit, agentId. Returns: object

phone_call_createA

Initiate an outbound phone call from an agent (REST-style: returns a callId immediately). The agent must have a provisioned phone number. For real-time streaming of the call back through the tool invocation, use the hosted MCP server (mcp.useanima.sh) where this tool stays open for the call's lifetime.

Inputs: to (required), tier, agentId, fromNumber. Returns: id, status, messageId

phone_call_getA
Read-onlyIdempotent

Get full detail for a single phone call: status, duration, participants, tier, AI-generated summary (one-liner, topics, action items, decisions, open questions, next steps), and quality score. The summary is generated once on first read after post-call processing and cached.

Inputs: id (required). Returns: object

phone_call_listA
Read-onlyIdempotent

List phone calls with optional filters. Returns lightweight call records — for full call detail including summary and score, use phone_call_get.

Inputs: limit, offset, status, agentId, +1 more. Returns: count, items, total, cursor, +2 more

phone_call_recording_getA
Read-onlyIdempotent

Get a time-limited download URL for a call recording (WAV format). The URL expires after 1 hour. Recording must have been enabled during the call.

Inputs: id (required). Returns: object

phone_call_transcript_getA
Read-onlyIdempotent

Get the full transcript of a phone call with speaker labels, timestamps, and confidence scores. Available after the call ends and transcription completes.

Inputs: id (required). Returns: object

phone_number_listA
Read-onlyIdempotent

List provisioned phone numbers, optionally filtered by agent. Each result includes status and capability flags (sms/mms/voice).

Inputs: agentId. Returns: count, items, total, cursor, +2 more

phone_number_provisionA

Provision a new phone number from the carrier pool and assign it to an agent. Note: provisioning a number costs money on the underlying carrier; do not call speculatively. Use countryCode / areaCode / capabilities to constrain selection.

Inputs: agentId (required), areaCode, countryCode, capabilities. Returns: object

phone_number_releaseA
DestructiveIdempotent

Release a previously provisioned phone number back to the carrier pool. Use this when cleaning up unused numbers. Released numbers cannot be recovered.

Inputs: agentId (required), phoneNumber (required). Returns: id, deleted

sms_getA
Read-onlyIdempotent

Fetch full detail for a single SMS by ID (includes its threadId for joining the conversation). Use sms_list to browse multiple SMS messages.

Inputs: id (required). Returns: object

sms_listA
Read-onlyIdempotent

List SMS messages with optional filters. Each result includes its threadId for joining the conversation. Use sms_get for full single-message detail.

Inputs: limit, cursor, agentId. Returns: count, items, total, cursor, +2 more

sms_sendA

Send an SMS to a phone number, or an MMS by passing mediaUrls. The agent must have a provisioned phone number. Use this for transactional texts or conversational messaging.

Inputs: to (required), body (required), agentId (required), mediaUrls. Returns: id, status, messageId

sms_thread_getA
Read-onlyIdempotent

Get a specific SMS conversation with message history. Use sms_thread_list to find IDs. Returns messages in the thread ordered by time.

Inputs: id (required), limit. Returns: object

sms_thread_listA
Read-onlyIdempotent

List SMS conversations. Optionally filter by agent_id to see conversations for a specific agent. Each conversation is a thread between your number and an external contact. Returns thread summaries with last message snippet + participant address.

Inputs: limit, offset, agentId. Returns: count, items, total, cursor, +2 more

usage_overviewA
Read-onlyIdempotent

Usage rollup for a billing period. Returns counters keyed by usage type (e.g. 'email_sent', 'sms_sent', 'voice_call_minutes') plus the latest update timestamp. Defaults to the current calendar month in UTC when period is omitted. Use to answer 'where am I against my tier limits?' without paying for per-event detail.

Inputs: period. Returns: object

vault_credential_createA

Create a new credential in an agent vault. Pass type plus the matching payload block (login / card / identity / notes). The response is masked — the caller already has the plaintext it just sent, so re-disclosing through MCP would only expose the LLM to its own input.

Inputs: name (required), type (required), agentId (required), card, +5 more. Returns: object

vault_credential_deleteA
DestructiveIdempotent

Delete a credential from vault storage by ID. Use this to remove obsolete or compromised secrets.

Inputs: id (required). Returns: id, deleted

vault_credential_getA
Read-onlyIdempotent

Get a single vault credential by ID. Sensitive fields (passwords, tokens, SSNs, CVV) are masked. To use the plaintext value for autofill or as an upstream credential, mint a vault token at the credential broker — the LLM never sees the secret directly.

Inputs: id (required). Returns: object

vault_credential_get_totpA
Read-only

Get the current TOTP code for a credential that has a TOTP secret configured. Use for time-based one-time passcode login flows. Returns the live 6-digit code derived from the stored secret — the secret itself is never disclosed.

Inputs: id (required). Returns: object

vault_credential_listA
Read-onlyIdempotent

List every credential in an agent vault. Use this to browse stored secrets before reading, updating, or deleting entries. Each item carries a type, so filter the returned list client-side. Sensitive fields in the response are masked.

Inputs: agentId (required). Returns: count, items, total, cursor, +2 more

vault_credential_updateA
Idempotent

Update an existing vault credential by ID. Use to rotate passwords or revise stored details. Response masked — caller already has plaintext for fields they just sent.

Inputs: id (required), card, name, login, +4 more. Returns: object

vault_provisionA
Idempotent

Provision a credential vault for an agent. Required before vault_credential_create can be called against a freshly-created agent — without a vault, credentials have nowhere to live. Idempotent: returns the existing vault if one already exists. Master-key only.

Inputs: agentId (required). Returns: object

voice_listA
Read-onlyIdempotent

List available AI voices for placing phone calls. The catalog is multilingual — filter by language or gender. Each voice includes descriptive metadata and a vendor-neutral audio preview URL, plus the voice ID needed for phone_call.

Inputs: gender, language. Returns: count, items, total, cursor, +2 more

webhook_deleteA
DestructiveIdempotent

Delete a webhook subscription by ID. Permanently removes the configuration and stops future deliveries. To temporarily pause without deleting, use webhook_set with { id, active: false }.

Inputs: id (required). Returns: id, deleted

webhook_getA
Read-onlyIdempotent

Get a webhook subscription by ID. Returns the full configuration (URL, subscribed events, active state, description).

Inputs: id (required). Returns: object

webhook_listA
Read-onlyIdempotent

List webhook subscriptions for the calling org with cursor pagination. Use to enumerate existing webhooks before set/delete operations.

Inputs: limit, cursor. Returns: count, items, total, cursor, +2 more

webhook_setA
Idempotent

Create or update a webhook subscription. If id is provided the call updates that webhook (PUT). If omitted it creates a new one (POST) — url and events are then required. Use this for declarative 'ensure webhook X exists' workflows where the caller doesn't track which side of create/update it's on.

Inputs: id, url, active, events, +4 more. Returns: object

webhook_testA

Send a test event payload to a webhook to verify the endpoint is reachable and the signature verification on the receiver side works. Returns a deliveryId you can correlate with your endpoint's logs.

Inputs: id (required), event. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 54 tools

    Disambiguation5/5

    Each tool targets a distinct resource-action pair (e.g., email_send vs email_reply, sms_send vs phone_call_create), and resource groups (email, sms, phone, vault, domain, webhook, agent) are clearly separated. No two tools have overlapping purposes.

    Naming Consistency5/5

    Tool names consistently follow a verb_noun pattern (e.g., agent_create, email_list, phone_number_provision) or a consistent noun_verb pattern within resource groups (e.g., webhook_set, vault_credential_get). No mixing of conventions or confusing abbreviations.

    Tool Count2/5

    At 54 tools, the server is overloaded even for a multi-resource API. Many tools could be consolidated (e.g., draft CRUD vs email CRUD are separate, phone call tools are numerous). This exceeds the typical MCP scope and may confuse agents.

    Completeness5/5

    The server covers all major operations for each resource: CRUD for agents, domains, webhooks, vault credentials; plus specialized actions like email reply/forward, SMS thread management, phone call transcripts, and account/usage overviews. No obvious missing endpoints for the stated domain.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides access to over 80 tools for managing OMICall and OMICRM APIs, including call center operations, ticket management, and multi-channel communication across platforms like Zalo and Facebook. It enables automated calling, agent management, and AI-powered text-to-speech capabilities through natural language.
      102 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to register domains, manage DNS, create mailboxes, and send/receive email through typed tools.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to send transactional emails and manage email infrastructure through the AgentiSend API, including domain verification, budgeted keys, and message logs.
      46
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to search for, purchase, connect, and verify custom domains end to end, including setting up email records, configuring forwarding, diagnosing drift, and confirming TLS issuance without handling DNS records directly. It offers twelve hosted tools covering domain availability, registration orders, provider discovery, and account-wide connection inventory.
      1
      MIT