Skip to main content
Glama
seven-mcp

seven-mcp

Official
by seven-io

MCP Seven

Model Context Protocol (MCP) server for the seven.io API. This server provides comprehensive access to seven.io's SMS, voice, RCS messaging, and account management services.

Features

Messaging

  • SMS: Send and manage SMS messages

  • RCS: Send Rich Communication Services messages with media and suggestions

  • Voice: Send text-to-speech voice calls

Account Management

  • Balance: Check account balance

  • Pricing: Get pricing information by country

  • Analytics: View account statistics

Lookup Services

  • Format Validation: Validate phone number formats

  • HLR: Home Location Register lookups (network info, roaming status)

  • MNP: Mobile Number Portability lookups (carrier information)

  • CNAM: Caller ID name lookups

  • RCS Capabilities: Check if a number supports RCS

Contact Management

  • Contacts: Full CRUD operations for contacts

  • Groups: Manage contact groups

Phone Numbers

  • Browse, purchase, and manage phone numbers

Advanced Features

  • Webhooks: Register webhooks for events

  • Subaccounts: Create and manage subaccounts

  • Status & Logbook: Track message delivery and view history

Related MCP server: lingtai-whatsapp

Installation

npm install -g @seven.io/mcp

Authentication

This MCP server supports two authentication methods:

OAuth provides better security with automatic token refresh and fine-grained scopes.

  1. Login via CLI:

npx @seven.io/mcp login

This will:

  • Open your browser to seven.io OAuth authorization

  • Request necessary permissions (SMS, Voice, RCS, etc.)

  • Store tokens securely in your system keychain

  • Auto-refresh tokens when they expire

CLI Commands:

# Login with OAuth
npx @seven.io/mcp login

# Check authentication status
npx @seven.io/mcp status

# Logout (remove stored tokens)
npx @seven.io/mcp logout

Option 2: API Key (Legacy)

For backwards compatibility, you can still use an API key:

export SEVEN_API_KEY="your-api-key"

Get your API key from the seven.io dashboard.

Priority

If both authentication methods are configured, OAuth takes priority.

Usage with Claude Desktop

Add this to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Linux: ~/.config/Claude/claude_desktop_config.json

With OAuth (recommended):

{
  "mcpServers": {
    "seven": {
      "command": "npx",
      "args": ["@seven.io/mcp"]
    }
  }
}

With API Key:

{
  "mcpServers": {
    "seven": {
      "command": "npx",
      "args": ["@seven.io/mcp"],
      "env": {
        "SEVEN_API_KEY": "your-api-key"
      }
    }
  }
}

With Debug Logging: To enable request/response logging for debugging, add the SEVEN_LOG_FILE environment variable:

{
  "mcpServers": {
    "seven": {
      "command": "npx",
      "args": ["@seven.io/mcp"],
      "env": {
        "SEVEN_API_KEY": "your-api-key",
        "SEVEN_LOG_FILE": "/tmp/mcp-seven-debug.log"
      }
    }
  }
}

Then monitor the log file:

tail -f /tmp/mcp-seven-debug.log

Note: If using OAuth, run npx @seven.io/mcp login before starting Claude Desktop.

Available Tools

Messaging Tools

  • send_sms - Send SMS messages

  • delete_sms - Delete scheduled SMS

  • send_rcs - Send RCS messages

  • delete_rcs - Delete RCS messages

  • rcs_events - Handle RCS events

  • send_voice - Send voice calls

  • hangup_voice - End active voice calls

Account Tools

  • get_balance - Check account balance

  • get_pricing - Get pricing information

  • get_analytics - View account statistics

Lookup Tools

  • lookup_format - Validate phone number format

  • lookup_hlr - Home Location Register lookup

  • lookup_mnp - Mobile Number Portability lookup

  • lookup_cnam - Caller ID name lookup

  • lookup_rcs - Check RCS capabilities

Status & Logbook Tools

  • get_status - Check message delivery status

  • get_logbook_sent - View sent messages

  • get_logbook_received - View received SMS

  • get_logbook_voice - View voice call history

Phone Numbers Tools

  • get_available_numbers - List available numbers

  • order_number - Purchase a phone number

  • get_active_numbers - List active numbers

  • get_number - Get number details

  • update_number - Update number configuration

  • delete_number - Cancel/delete number

Contact Tools

  • list_contacts - List all contacts

  • create_contact - Create new contact

  • get_contact - Get contact by ID

  • update_contact - Update contact

  • delete_contact - Delete contact

Group Tools

  • list_groups - List all groups

  • create_group - Create new group

  • get_group - Get group by ID

  • update_group - Update group

  • delete_group - Delete group

Subaccount Tools

  • list_subaccounts - List all subaccounts

  • create_subaccount - Create new subaccount

  • update_subaccount - Update subaccount settings

  • transfer_credits - Transfer credits to subaccount

  • delete_subaccount - Delete subaccount

Webhook Tools

  • list_webhooks - List registered webhooks

  • create_webhook - Register new webhook

  • delete_webhook - Delete webhook

Sender Tools

  • validate_sender - Validate sender identifiers

Example Usage

Once configured, you can use the tools in Claude:

Send an SMS to +1234567890 saying "Hello from seven.io!"
Check my account balance
Look up the carrier information for phone number +1234567890

Development

Watch mode

npm run watch

Build

npm run build

Testing

Run the comprehensive test suite:

npm test

Run tests in watch mode:

npm run test:watch

Generate coverage report:

npm run test:coverage

Test Coverage

The test suite includes:

  • Unit tests for all API client methods

  • Tool tests for all 40+ MCP tools covering:

    • RCS messaging (3 tools)

    • SMS messaging (2 tools)

    • Voice calls (2 tools)

    • Account management (3 tools)

    • Lookup services (5 tools)

    • Status & Logbook (4 tools)

    • Phone number management (6 tools)

    • Contact management (5 tools)

    • Group management (5 tools)

    • Subaccount management (5 tools)

    • Webhook management (3 tools)

    • Sender validation (1 tool)

  • Integration tests verifying all tools export correctly and have valid schemas

  • Endpoint validation tests that verify API endpoint paths are correct (requires SEVEN_API_KEY)

Coverage target: 80% for branches, functions, lines, and statements.

Endpoint Validation

To run endpoint validation tests that verify the API paths are correct:

SEVEN_API_KEY=your-api-key npm test

These integration tests ensure that endpoints match the seven.io API documentation and will catch issues like incorrect paths (e.g., using /logbook/received instead of /journal/inbound).

API Documentation

For detailed API documentation, visit docs.seven.io.

License

MIT

Available Tools

44 tools
create_contactC

Create a new contact

Inputs: firstname, lastname, mobile_number, home_number, +8 more.

create_groupA

Create a new contact group

Inputs: name (required).

create_subaccountC

Create a new subaccount

Inputs: name (required), email (required).

create_webhookC

Register a new webhook

Inputs: target_url (required), event_type (required), request_method, event_filter, +1 more.

delete_contactB

Delete a contact

Inputs: id (required).

delete_groupC

Delete a contact group

Inputs: id (required), delete_contacts.

delete_numberB

Cancel/delete a phone number

Inputs: number (required), delete_immediately.

delete_rcsB

Delete a scheduled RCS message

Inputs: id (required).

delete_smsA

Delete scheduled SMS message(s)

Inputs: ids (required).

delete_subaccountB

Delete a subaccount

Inputs: id (required).

delete_webhookD

Delete a webhook

Inputs: id (required).

get_active_numbersC

List all active phone numbers

Inputs: no named parameters.

get_analyticsC

Get account statistics and analytics

Inputs: start, end, subaccounts, group_by, +1 more.

get_available_numbersB

List available phone numbers for purchase

Inputs: country, type, features_sms, features_a2p_sms, +1 more.

get_balanceB

Check account balance

Inputs: no named parameters.

get_contactB

Get a specific contact by ID

Inputs: id (required).

get_groupB

Get a specific group by ID

Inputs: id (required).

get_logbook_receivedC

View received SMS messages

Inputs: date_from, date_to.

get_logbook_sentC

View sent messages in logbook

Inputs: date_from, date_to, state, limit.

get_logbook_voiceC

View voice call history

Inputs: date_from, date_to.

get_numberA

Get details of a specific active phone number

Inputs: number (required).

get_pricingC

Get pricing information for SMS, voice, and other services

Inputs: country, format.

get_statusB

Get detailed information about a sent message using its ID

Inputs: id (required).

hangup_voiceC

End an active voice call

Inputs: call_id (required).

list_contactsB

List all contacts

Inputs: no named parameters.

list_groupsB

List all contact groups

Inputs: no named parameters.

list_subaccountsB

List all subaccounts

Inputs: no named parameters.

list_webhooksB

List all registered webhooks

Inputs: no named parameters.

lookup_cnamC

Perform Caller ID name lookup

Inputs: number (required).

lookup_formatB

Validate phone number format

Inputs: number (required).

lookup_hlrB

Perform Home Location Register lookup (network info, roaming status)

Inputs: number (required).

lookup_mnpC

Perform Mobile Number Portability lookup (carrier information)

Inputs: number (required).

lookup_rcsB

Check RCS capabilities for a phone number

Inputs: number (required).

order_numberC

Purchase a phone number

Inputs: number (required), payment_interval.

rcs_eventsC

Handle RCS events (delivery reports, read receipts, IS_TYPING, etc.)

Inputs: event_type (required), phone, to, message_id, +1 more.

send_rcsC

Send an RCS (Rich Communication Services) message

Inputs: to (required), text, media, suggestions, +7 more.

send_smsC

Send an SMS message to one or multiple recipients

Inputs: to (required), text (required), from, delay, +14 more.

send_voiceB

Send a voice call with text-to-speech

Inputs: to (required), text (required), from, xml, +3 more.

transfer_creditsB

Manually transfer credits to a subaccount

Inputs: id (required), amount (required).

update_contactA

Update a contact. To add/remove contact from groups, provide the complete list of group IDs the contact should be a member of.

Inputs: id (required), firstname, lastname, mobile_number, +9 more.

update_groupA

Update a contact group (only name can be updated)

Inputs: id (required), name (required).

update_numberC

Update phone number configuration including friendly name and forwarding settings

Inputs: number (required), friendly_name, sms_forward, email_forward, +1 more.

update_subaccountB

Configure automatic balance transfer for a subaccount

Inputs: id (required), threshold (required), amount (required).

validate_senderC

Validate sender identifier for voice calls

Inputs: sender (required), type (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 44 tools

    Disambiguation4/5

    Most tools have distinct purposes with clear descriptions, but the high number (44) and similar lookups (e.g., lookup_hlr, lookup_mnp, lookup_rcs) could cause some confusion for an agent. Overall, the set is well-differentiated.

    Naming Consistency4/5

    The tool names consistently follow a verb_noun pattern with underscores (e.g., create_contact, send_sms). The only exception is `rcs_events`, which uses noun_verb, a minor deviation.

    Tool Count2/5

    With 44 tools, the server is over-scoped for a typical MCP server. This high count can overwhelm agents and suggests the server could be split into smaller, more focused servers. The calibration indicates 25+ tools as 'too many'.

    Completeness5/5

    The tool set covers a comprehensive range of operations for a telephony/SMS platform: CRUD for contacts, groups, subaccounts, webhooks, numbers; sending SMS/RCS/voice; various lookups; analytics; and account management. Few gaps exist (e.g., limited group update), but overall it's very complete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      MCP server for interacting with the official Meta WhatsApp Business Platform/Cloud API, enabling sending messages, managing contacts, templates, and handling webhook callbacks.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive MCP server for TELNYX integration, enabling AI assistants to send SMS messages, make voice calls, and handle incoming communications via webhooks.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for ThaiBulkSMS and ThaiBulkMail APIs, enabling SMS, email, credit check, and OTP operations through natural language.
      8
      16 npm
      MIT