Логотип Sinch

Sinch

Організація
sinch

Exposing Sinch's APIs as MCP Tools

Видавецьsinch
Репозиторійsinch-mcp-server
МоваTypeScript
Форки
2
Зірки
1
Доступні інструменти
0
Тип транспортуstdio
Категорії
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Sinch надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 1, форки: 2 — у пов’язаному репозиторії.

Sinch MCP Server — Developer Preview

Latest Release

This repository contains the source code for the Sinch MCP server, which provides a set of tools to interact with the Sinch APIs. This README focuses on using the MCP server with the Claude Desktop client, but it can also be used with any other MCP client.

Tools Overview

Here is the list of tools available in the MCP server (all the phone numbers must be provided in E.164 format, e.g., +33612345678 for France).

Conversation Tools

ToolDescriptionTags
send-text-messageSend a plain text message to a recipient on a supported channel. Example prompt: "Send a quick update to the phone number +33612345678 on SMS."conversation, notification
send-media-messageSend an image, video, or document via a media message. Example prompt: "Send the product brochure PDF to the phone number +33612345678 on WhatsApp."conversation, notification
send-template-messageSend a message using a predefined template (omni-template only). Example prompt: "Send the appointment reminder template in Spanish to this user on Messenger."conversation, notification
send-whatsapp-template-messageSend a message using a predefined WhatsApp template. Example prompt: "Send a message using the template "appointment-reminder" on WhatsApp."conversation, notification
send-choice-messageSend a message that includes interactive choices (buttons or quick replies). Example prompt: "Send a RCS survey about preferred ice cream flavor to +33612345678 with the following choices: Vanilla, Strawberry, Hazelnut".conversation, notification
send-location-messageSend a location pin or coordinates to a user. Example prompt: "Send a pin to the Guggenheim Museum location in Bilbao to the phone number +33612345678."conversation, notification
list-conversation-appsList all configured Conversation apps in the Sinch account. Example prompt: "What messaging apps do I have set up in my account?"conversation, notification
create-conversation-appCreate a new Conversation API app (no channels required at creation). Example prompt: "Create a Conversation app named My Support Bot in the EU region."conversation, configuration
update-conversation-appUpdate a Conversation API app display name. Example prompt: "Rename Conversation app abc123 to My Support Bot."conversation, configuration
delete-conversation-appDelete a Conversation API app by ID. Example prompt: "Delete Conversation app abc123."conversation, configuration
set-sms-channel-on-appSet (create or replace) the SMS channel on a Conversation app. Example prompt: "Set SMS on app abc123 using service plan XYZ and API token …"conversation, configuration
set-rcs-channel-on-appSet (create or replace) the RCS channel on a Conversation app. Example prompt: "Set RCS on app abc123 with sender ID … and bearer token …"conversation, configuration
set-whatsapp-channel-on-appSet (create or replace) the WhatsApp channel on a Conversation app. Example prompt: "Set WhatsApp on app abc123 with sender ID … and bearer token …"conversation, configuration
list-messaging-templatesList the omni-channel message templates (managed by Sinch) for the configured region. WhatsApp-specific templates can be fetched with the list-whatsapp-templates tool. Example prompt: "Show me all message templates in my account."conversation, notification
list-webhooksList webhooks configured for a Conversation app. Example prompt: "List all webhooks for my Conversation app."conversation, configuration
get-webhookGet a webhook by ID. Example prompt: "Show me the details of webhook ID abc123."conversation, configuration
create-webhookCreate a webhook that delivers Conversation API events to a target URL. Example prompt: "Create a webhook for inbound messages at https://example.com/callback."conversation, configuration
update-webhookUpdate a webhook target URL and/or triggers. Example prompt: "Update webhook abc123 to also receive MESSAGE_DELIVERY events."conversation, configuration
delete-webhookDelete a webhook by ID. Example prompt: "Delete webhook abc123."conversation, configuration

Email tools (Mailgun)

ToolDescriptionTags
send-emailSend an email using a predefined HTML template or raw HTML/text content. Example prompt: "Send a welcome email to john@example.com using our onboarding template."email, notification
list-email-templatesList all email templates available for a specific domain. Example prompt: "What email templates do I have available?"email, notification
retrieve-email-infoRetrieve metadata, content and delivery status for a specific email message. Example prompt: "Can you get the delivery status of the email with ID ?"email, notification
list-email-eventsRetrieve and group recent email delivery events, such as bounces, opens, or clicks. Example prompt: "Show me all recent email activity for my account."email
analytics-metricsRetrieve email analytics metrics, such as open rates or click-through rates. Example prompt: "What are the open rates during the last week?"email

Verification Tools

ToolDescriptionTags
number-lookupLookup a phone number for its status and capabilities. Example prompt: "Lookup for the following phone number capabilities: +33501020304."verification
start-sms-verificationInitiate an SMS verification by sending an OTP to a user's phone number. Example prompt: "Start phone verification for the number +33612345678."verification
report-sms-verificationSubmit a one-time password (OTP) to complete SMS verification. Example prompt: "Verify the phone number with this code: 1234."verification

Voice Tools

ToolDescriptionTags
tts-calloutPlace a voice call and read aloud a message using Text-to-Speech. Example prompt: "Call the phone number +33612345678 and say: 'Your appointment is tomorrow at 10 AM.'"voice, notification
conference-calloutStart a voice call to one or more participants and connect them to a shared conference. Example prompt: "Call John (+33612345678) and Lisa (+34987654321) and connect them to a conference room."voice
manage-conference-participantMute, unmute, hold, or resume an individual participant in a conference call. Example prompt: "Mute the caller with ID xyz789 in the conference."voice
close-conferenceEnd a conference call by disconnecting all the participants using the ID of the conference. Example prompt: "End the current conference call with ID abc123."voice
get-call-informationGet information about a call using its ID. Example prompt: "Get the details of call ID abc123."voice, notification

RCS Sender Tools

ToolDescriptionTags
list-rcs-sendersList all RCS senders for the project, with pagination support. Example prompt: "Show me all my RCS senders."rcs, configuration
get-rcs-senderGet a full RCS sender by ID, including credentials, state, brand details, test numbers, and country status. Example prompt: "Get the details of my RCS sender abc123."rcs, configuration
create-rcs-senderCreate a new RCS sender. Brand details, questionnaire, and countries can be provided upfront or added incrementally via update-rcs-sender. Example prompt: "Create an RCS sender for the EU region with a CONVERSATIONAL billing category."rcs, configuration
update-rcs-senderUpdate an RCS sender's brand, countries, test numbers, or questionnaire. Example prompt: "Update my RCS sender abc123 with the brand logo URL."rcs, configuration
launch-rcs-senderSubmit an RCS sender for Google and carrier review. All brand details, countries, and questionnaire sections must be complete before launching. Example prompt: "Launch my RCS sender abc123."rcs, configuration
add-rcs-test-numberAdd test phone numbers to an RCS sender (max 20 per request, 200 total per sender). Example prompt: "Add +14155552671 as a test number to my RCS sender."rcs, configuration
delete-rcs-test-numberDelete a test number from an RCS sender. Example prompt: "Remove test number +14155552671 from my RCS sender."rcs, configuration
resend-rcs-test-number-inviteResend a test number invite when state is PENDING or UNVERIFIED. Example prompt: "Resend the invite for test number +14155552671 on sender abc123."rcs, configuration
get-rcs-test-number-stateGet the verification state of a single RCS test number. Example prompt: "What is the state of test number +14155552671 on sender abc123?"rcs, configuration
get-rcs-number-capabilitiesGet the RCS features supported by a test number's device (actions, rich card layouts, revocation). Example prompt: "What RCS features does +14155552671 support?"rcs, configuration

WhatsApp Tools

ToolDescriptionTags
get-whatsapp-accountGet the WhatsApp Business Account (WABA) of the project: onboarding state, WABA ID, business details, ban state, daily message limit and compatible regions. Example prompt: "What is the current status of my WhatsApp Business Account?"whatsapp, configuration
list-whatsapp-templatesList the WhatsApp channel-specific message templates (managed by Meta). Omni-channel templates can be fetched with the list-messaging-templates tool. Example prompt: "Show me my WhatsApp templates."whatsapp, configuration
create-whatsapp-templateCreate a WhatsApp message template, as a draft or submitted for review. Example prompt: "Create a WhatsApp UTILITY template named order_confirmation in English with body text 'Your order {{1}} has shipped.'"whatsapp, configuration
update-whatsapp-templateUpdate a WhatsApp message template draft (or reset an APPROVED/REJECTED/PAUSED/DISABLED template to draft) by name and language. Example prompt: "Update the order_confirmation EN WhatsApp template's body text to 'Your order {{1}} has shipped today.' and submit it for review."whatsapp, configuration
delete-single-whatsapp-template-languageDelete a single language variant of a WhatsApp message template by name and language — other languages of the same template name are unaffected. Example prompt: "Delete the draft of the order_confirmation EN WhatsApp template."whatsapp, configuration
delete-all-whatsapp-template-languagesDelete every language variant of a WhatsApp message template by name in one call. Example prompt: "Delete all language variants of the order_confirmation WhatsApp template."whatsapp, configuration

Numbers Tools

ToolDescriptionTags
list-available-regionsList all regions where phone numbers are available for the project. Can filter by number type (MOBILE, LOCAL, TOLL_FREE). Example prompt: "Which regions have toll-free numbers available?"numbers
list-rented-numbersList all active (rented) phone numbers for the project. Can filter by region, type, pattern, and capability. Example prompt: "Show me all my active phone numbers in the US."numbers
search-for-available-numbersSearch for phone numbers available to rent, with filters for region, type, pattern, and capabilities. Example prompt: "Find available local numbers in the US that support SMS."numbers
rent-sinch-virtual-numbersRent (activate) one or more phone numbers by providing them in E.164 format. Example prompt: "Rent the phone number +12025551234."numbers
release-rented-numberRelease a rented phone number from your project. Example prompt: "Release the phone number +12025551234."numbers

Configuration Tools

ToolDescriptionTags
sinch-mcp-configurationList all available tools in the Sinch MCP server and their status. If a tool is disabled, it will display the reason why. Example prompt: "Which tools are available in the Sinch MCP server?"

Getting Started

Prerequisites

API credentials

To use the APIs used by the MCP tools, you will need the following credentials:

  • RCS API credentials: RCS must be enabled for your Sinch project. Contact si-richmessaging@sinch.com to activate it. Once enabled, RCS uses the same PROJECT_ID, KEY_ID, and KEY_SECRET as the Conversation API (see below).

  • WhatsApp Template API credentials: uses the same PROJECT_ID, KEY_ID, and KEY_SECRET as the Conversation API (see below).

  • Conversation / Numbers API credentials:

    • (Required) PROJECT_ID: Select the project you want to use from your Sinch Build dashboard (Located at the left of the top toolbar) Project ID selection
    • (Required) KEY_ID: Select or create a new access key in the Access keys section of the Sinch Build dashboard.
    • (Required) KEY_SECRET: This is the secret associated with the Access Key you selected or created in the previous step. Be careful, the Access Key Secret is only shown once when you create the Access Key. If you lose it, you will need to create a new Access Key.
    • CONVERSATION_APP_ID: This is the ID of the conversation app you want to use. You can find it in the Conversation API / Apps section of the Sinch Build dashboard. If you don't set it, you will have to specify it in the prompt.
    • CONVERSATION_REGION: This is the region where your conversation app and templates are located. It can be us, eu, or br. If you don't set it, it defaults to us (except in multi-tenant mode, where it is required and never defaulted).
    • When using the SMS channel, you can also set the DEFAULT_SMS_ORIGINATOR environment variable to the phone number that will be used as the sender for SMS messages. Depending on your country, this setting may be required.
    • You can also set the GEOCODING_API_KEY environment variable to your Google Geocoding API key if you want to use the location feature. This is needed to convert an address to a latitude/longitude pair.
  • Verification API credentials: navigate to the Verification / Apps section of the Sinch Build dashboard and create a new app or select an existing one. You will need the following credentials:

    • (Required) APPLICATION_KEY
    • (Required) APPLICATION_SECRET
  • Voice API credentials: navigate to the Voice / Apps section of the Sinch Build dashboard and create a new app or select an existing one. You will need the following credentials:

    • (Required) APPLICATION_KEY
    • (Required) APPLICATION_SECRET
    • You can also set the CALLING_LINE_IDENTIFICATION environment variable to the phone number that will be displayed to the user when they receive a call.
  • Mailgun API credentials: navigate to the Mailgun / Domains section of the Mailgun dashboard and create a new domain or select an existing one. You will need the following credentials:

    • (Required) MAILGUN_API_KEY
    • MAILGUN_DOMAIN
    • MAILGUN_SENDER_ADDRESS

MCP Server Configuration

The Sinch MCP server is available as an NPM package to the executed. Here is how to set it up in the Claude Desktop configuration file (claude_desktop_config.json). Remember to fill in the environment variables with your own credentials:

json
{
  "mcpServers": {
    "sinch": {
      "command": "npx",
      "args": ["-y", "@sinch/mcp"],
      "env": {
        "PROJECT_ID": "",
        "KEY_ID": "",
        "KEY_SECRET": "",
        "CONVERSATION_APP_ID": "",
        "CONVERSATION_REGION": "",
        "DEFAULT_SMS_ORIGINATOR": "",
        "GEOCODING_API_KEY": "",
        "APPLICATION_KEY": "",
        "APPLICATION_SECRET": "",
        "CALLING_LINE_IDENTIFICATION": "",
        "MAILGUN_API_KEY": "",
        "MAILGUN_DOMAIN": "",
        "MAILGUN_SENDER_ADDRESS": ""
      }
    }
  }
}

Running the MCP Server locally

Option 1: Start the MCP server with stdio using Claude Desktop

To run the MCP server locally with Claude Desktop, you will need to clone the repository and build the MCP server. This option is useful for local development and testing.

Step 1: Clone the repository

bash
git clone https://github.com/sinch/sinch-mcp-server.git

Step 2: Build the MCP server

bash
cd sinch-mcp-server
npm install
npm run build

Step 3: Setup Claude Desktop configuration

Here is an example of how to configure the MCP server in the Claude Desktop configuration file (claude_desktop_config.json):

json
{
  "mcpServers": {
    "sinch": {
      "command": "node",
      "args": ["/your/path/to/sinch-mcp-server/dist/index.js"],
      "env": {
        "PROJECT_ID": "",
        "KEY_ID": "",
        "KEY_SECRET": "",
        "CONVERSATION_APP_ID": "",
        "CONVERSATION_REGION": "",
        "DEFAULT_SMS_ORIGINATOR": "",
        "GEOCODING_API_KEY": "",
        "APPLICATION_KEY": "",
        "APPLICATION_SECRET": "",
        "CALLING_LINE_IDENTIFICATION": "",
        "MAILGUN_API_KEY": "",
        "MAILGUN_DOMAIN": "",
        "MAILGUN_SENDER_ADDRESS": ""
      }
    }
  }
}

Step 4: (Optional) Filter the tools available in the MCP server

Too many tools mean bigger context, mean higher tokens usage and more confusion for the LLM to select the right tool to use. You can filter the tools that are available in the MCP server by using the tags options. For example, if you want to only use the conversation tools, you can add the following options to the args array:

      "args": [
        "/your/path/to/sinch-mcp-server/dist/index.js",
        "--tags",
        "conversation"
      ],

You can combine multiple tags by separating them with commas. For example, if you want to use both conversation and verification tools, you can use the following command:

      "args": [
        "/your/path/to/sinch-mcp-server/dist/index.js",
        "--tags",
        "conversation,verification"
      ],

Available tags: conversation, rcs, whatsapp, email, verification, voice, numbers, notification, configuration, all.

If you want to use all the tools, you can omit the --tags option, or use the tag all:

      "args": [
        "/your/path/to/sinch-mcp-server/dist/index.js",
        "--tags",
        "all"
      ],

Option 2: Start the MCP server remotely and connect to it using SSE

With this option, you can run the MCP server on a remote machine and connect to it using Server-Sent Events (SSE). This is useful if you want to run the MCP server on a cloud server or a dedicated machine. By default, Claude Desktop will connect to the MCP server using STDIO; we will use the supergateway library to connect to the MCP server using SSE.

Step 1: Build the MCP server

bash
cd sinch-mcp-server
npm install
npm run build

Step 2: Set up the MCP server configuration

Copy the file .template.env and rename it .env. Then replace the placeholders with your own credentials and delete any key you don't need. Environment variables are parsed and typed at server startup via T3 Env; missing credentials only cause errors when you invoke a tool that requires them. The .env file should look like this ():

dotenv
# Conversation / Numbers tools related environment variables
PROJECT_ID=
KEY_ID=
KEY_SECRET=
## Optional but recommended: the App ID holding your channels integration configuration. If not set it must be present in the prompt
CONVERSATION_APP_ID=
## Optional, defaults to "us". Other possible values are "eu" and "br"
CONVERSATION_REGION=
## Needed only if you want to send SMS messages: it is the number that will be used as the sender for SMS messages
DEFAULT_SMS_ORIGINATOR=
## Needed only if you want to send location messages: it converts an address to a latitude/longitude pair
GEOCODING_API_KEY=

# Verification / Voice tools related environment variables
APPLICATION_KEY=
APPLICATION_SECRET=
## Needed only if you want to make calls: it is the number that will be displayed to the user when they receive a call
CALLING_LINE_IDENTIFICATION=

# Mailgun tools related environment variables
MAILGUN_DOMAIN=
MAILGUN_API_KEY=
MAILGUN_SENDER_ADDRESS=

Step 3: Start the MCP server

bash
npm run start:stdio

By default, this command will start the MCP with all the tools available. If you want to filter the tools that are available in the MCP server, you can use the --tags option. For example, if you want to only use the conversation tools, you can modify the command as follows:

bash
# Original command
"start:sse": "tsc --project tsconfig.build.json && (npx -y supergateway --stdio \"node dist/index.js\" --port 8000 --baseUrl http://localhost:8000 --ssePath /sse --messagePath /message)"

# Modified command to only use conversation tools
"start:sse": "tsc --project tsconfig.build.json && (npx -y supergateway --stdio \"node dist/index.js --tag conversation\" --port 8000 --baseUrl http://localhost:8000 --ssePath /sse --messagePath /message)"

You can combine multiple tags by separating them with commas. For example, if you want to use both conversation and verification tools, you can use the following command:

bash
"start:sse": "tsc --project tsconfig.build.json && (npx -y supergateway --stdio \"node dist/index.js --tag conversation,verification\" --port 8000 --baseUrl http://localhost:8000 --ssePath /sse --messagePath /message)"

Step 4: Configure the MCP server in Claude Desktop

You can then configure the MCP server in the Claude configuration file as follows:

json
{
  "mcpServers": {
    "sinch": {
      "command": "npx",
      "args": ["-y", "supergateway", "--sse", "http://localhost:8000/sse"]
    }
  }
}

(Replace the http://localhost:8000/sse with the URL of your MCP server if it is not running locally)

Option 3: Native Streamable HTTP server (recommended for remote)

This option runs a native Streamable HTTP MCP server on /mcp. It is either single-tenant or multi-tenant (See below).

Step 1: Build the MCP server

bash
cd sinch-mcp-server
npm install
npm run build

Step 2: Pick a tenancy

Tenancy is determined by MCP_AUTH_MODE, which is read first:

  • multi-tenant (client credentials) if MCP_AUTH_MODE is client-credentials
  • multi-tenant (sinchid-agent) if MCP_AUTH_MODE is sinchid-agent
  • single-tenant if MCP_AUTH_MODE is unset — PROJECT_ID, KEY_ID and KEY_SECRET are then required
MCP_AUTH_MODETenancyPROJECT_ID/KEY_ID/KEY_SECRETTools run as
set to a known modeMulti-tenantnever readwhatever the caller sends
set to anything else——refuses to start
unsetSingle-tenantrequired, all threethe server's env credentials

Because the mode is read before anything else, credentials left in the environment cannot quietly switch a multi-tenant server back onto one shared account — there, they are not consulted at all, for credential resolution or for telemetry. An unrecognised value is a startup error rather than a fall back to single-tenant, which would drop inbound authentication altogether. With MCP_AUTH_MODE unset, a partial triple also refuses to start: set all three, or none and a mode.

Single-tenant (no MCP_AUTH_MODE)

Use when every client of this MCP instance shares the same Sinch project — in practice, local development. The credentials live on the server, and all three are required:

dotenv
PORT=8000
PROJECT_ID=
KEY_ID=
KEY_SECRET=
# MCP_AUTH_MODE deliberately unset

Note: /mcp performs no inbound authentication in this mode. MCP_AUTH_MODE being unset is the entire configuration, so there is no per-caller credential to validate and anyone who can reach the port transacts on that account. Bind it to localhost and do not expose it. For a remotely reachable server, use a multi-tenant mode.

CONVERSATION_REGION stays optional here (defaulting to us) and can still be overridden from the prompt.

Multi-tenant (MCP_AUTH_MODE=client-credentials)

Use when different clients must use different Sinch projects. Each client sends its own credentials on every request:

HeaderValue
AuthorizationBearer <Base64-encoded projectId:keyId:keySecret>

The server does not read PROJECT_ID, KEY_ID, or KEY_SECRET from its environment in this mode — not for OAuth-backed tools, and not for span attributes either. OAuth clients are cached in memory with LRU eviction (default 256 entries, configurable via OAUTH_TOKEN_CACHE_MAX_ENTRIES).

In the multi-tenant modes, CONVERSATION_REGION is required: the server refuses to start without it, and it is never defaulted to us. Each deployment is pinned to a single region, and the region cannot be overridden per request or from the prompt.

How the shape check behaves

The shape check exists only in the multi-tenant modes. Requests are checked against the configured shape and rejected with 401 plus a WWW-Authenticate: Bearer challenge otherwise:

  • client-credentials requires a token that decodes to projectId:keyId:keySecret. A SinchID JWT contains . separators, so it never decodes to a credential triple and is rejected here. x-agent-id is ignored: this deployment never reads it.
  • sinchid-agent requires a three-segment JWT and an x-agent-id header — credentials are resolved from the agent installation it names, so a request without it cannot complete. A Base64 credential triple is not a JWT, so it is rejected here.

A request with no Authorization at all gets the RFC 6750 realm-only challenge (Bearer realm="sinch-mcp") with the reason in the response body; a request carrying the wrong kind of token gets error="invalid_token" plus a description.

The SinchID token's signature is not verified in-app — the check only ensures the right kind of credential reaches the right deployment.

Two deployments of the same image, each with its own MCP_AUTH_MODE, therefore serve the two audiences on separate hostnames without either accepting the other's credentials. MCP_AUTH_MODE has no effect over stdio.

sinchid-agent is not functional yet. Credential resolution for this mode lands in DEVEXP-1631; until then its tools return an explanatory prompt instead of running.

Authorization credentials format (HTTP only)

  1. Build a UTF-8 string: projectId:keyId:keySecret (see API credentials).
  2. Encode with standard Base64 (no line breaks, standard +// alphabet — not base64url).
  3. Send as Authorization: Bearer <base64> on each HTTP request (including after MCP session initialization).

The access key secret may contain : characters; only the first two colons separate the three fields.

A request whose Authorization header is missing, uses a scheme other than Bearer, or whose token is not a Base64-encoded projectId:keyId:keySecret triple is not rejected at the HTTP layer: OAuth-backed tools return a prompt response stating Missing or invalid Authorization header (expected "Bearer <Base64 of projectId:keyId:keySecret>").

Example (multi-tenant):

bash
export SINCH_CREDS=$(printf '%s' 'my-project-id:my-key-id:my-key-secret' | base64)

curl -X POST "http://localhost:8000/mcp" \
  -H "Authorization: Bearer ${SINCH_CREDS}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"example","version":"1.0.0"}}}'

Scope: the Authorization credentials apply to Conversation, Numbers, and Number Lookup tools. Voice, Verification, and Mailgun still use server environment variables for now. Local stdio (Option 1) always uses server environment variables.

x-agent-id header (sinchid-agent only)

Agent integrations (e.g. an agent installed in a Gemini Enterprise app) send an x-agent-id header carrying the unique installation identifier (the Marketplace OrderId). Its purpose is to distinguish which installation is calling the MCP server, so it is required on deployments running with MCP_AUTH_MODE=sinchid-agent: it will be used to resolve the caller's Sinch credentials in an upcoming release. Elsewhere it is simply not read — the other modes ignore it, and over stdio credentials always come from the environment. This custom header is a temporary mechanism until a token-exchange capability is available over M2M authentication.

HeaderValue
x-agent-idAgent installation identifier (e.g. GE OrderId)

Authorization user JWT (agent deployments)

After the end-user completes the OAuth login and consent flow, agent integrations may send the resulting Auth0 user JWT on each request:

HeaderValue
AuthorizationBearer <user JWT>

The server base64-decodes the JWT payload and captures the Sinch claims (https://sinch.com/project_id, https://sinch.com/account_id, https://sinch.com/global_user_id) and the standard scope claim in the request context, logging them for audit purposes only. The token signature is not verified and the claims are never used to resolve API credentials (the x-agent-id header serves that purpose). In single-tenant, a missing or malformed token is ignored and the request proceeds normally; in the multi-tenant modes the token must match the deployment's shape or the request is rejected with 401. In the long term, the user JWT will be exchanged for an M2M JWT, replacing the custom headers.

What the Authorization token is depends on the deployment:

DeploymentBearer tokenSinch credentials come from
Single-tenantnot read, and not requiredthe server's PROJECT_ID/KEY_ID/KEY_SECRET
Multi-tenant, client-credentialsBase64 projectId:keyId:keySecretthe token itself
Multi-tenant, sinchid-agentSinchID access token (three-segment JWT)the agent installation — not implemented yet (DEVEXP-1631)

The two multi-tenant shapes are disjoint: a JWT contains . separators, which are not in the Base64 alphabet, so a credential triple is never read as a token and a JWT never resolves to credentials. Each multi-tenant deployment accepts only its own shape and answers 401 to the other — see MCP_AUTH_MODE.

Because a request carries a single Authorization header, the audit claims described above are captured only where the token is a JWT — that is, on a sinchid-agent deployment. A client-credentials caller supplies credentials rather than a user token, so no claims are logged for it.

Step 3: Start the HTTP server

bash
npm run start:http:server

The server listens on http://localhost:8000/mcp by default (override with PORT).

Session storage (Redis)

Session identity is stored in Redis, not in process memory, so any pod behind a load balancer can validate any session — no sticky sessions required. Each request builds its own short-lived McpServer and StreamableHTTPServerTransport, closed once the response finishes; nothing is held in memory between requests. Redis is required — the server exits immediately on startup unless both REDIS_HOST and REDIS_PORT are set (REDIS_PASSWORD is optional; TLS turns on automatically once it's set, e.g. for AWS ElastiCache). If Redis is unreachable after a short retry, the server returns 503 Service Unavailable with JSON-RPC error code -32003, distinct from -32001 Session not found.

Because there's no persistent per-session transport, the server doesn't support the standalone GET/SSE stream — GET /mcp returns 405. Server-initiated notifications sent during a POST (e.g. tool progress) work as usual; a notification pushed independently of any request would have nowhere to go once transports are per-request.

Step 4: Example MCP client configuration

Every mode sends the same header shape — what differs is whose credentials the token carries. Single-tenant clients encode the server's triple; multi-tenant clients encode their own.

json
{
  "mcpServers": {
    "sinch-remote": {
      "url": "https://your-host.example.com/mcp",
      "headers": {
        "Authorization": "Bearer <base64(projectId:keyId:keySecret)>"
      }
    }
  }
}

After the initialize response, include the mcp-session-id header returned by the server on subsequent requests.

Contributing

See CONTRIBUTING.md for contributor guidelines, including how to add new tools and pin GitHub Actions.

Встановлення

TypingMind
Передумови:

Node.js 18+

{
  "mcpServers": {
    "sinch": {
      "command": "npx",
      "args": [
        "-y",
        "@sinch/mcp"
      ],
      "env": {
        "CONVERSATION_PROJECT_ID": "",
        "CONVERSATION_KEY_ID": "",
        "CONVERSATION_KEY_SECRET": "",
        "CONVERSATION_APP_ID": "",
        "CONVERSATION_REGION": "",
        "DEFAULT_SMS_ORIGINATOR": "",
        "GEOCODING_API_KEY": "",
        "NGROK_AUTH_TOKEN": "",
        "VERIFICATION_APPLICATION_KEY": "",
        "VERIFICATION_APPLICATION_SECRET": "",
        "VOICE_APPLICATION_KEY": "",
        "VOICE_APPLICATION_SECRET": "",
        "CALLING_LINE_IDENTIFICATION": "",
        "MAILGUN_API_KEY": "",
        "MAILGUN_DOMAIN": "",
        "MAILGUN_SENDER_ADDRESS": ""
      }
    }
  }
}

Використовуйте MCP Sinch з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Sinch ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Sinch як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Sinch.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "sinch": {
      "command": "npx",
      "args": [
        "-y",
        "@sinch/mcp"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Sinch, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Sinch.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Sinch?
Sinch
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Sinch.

Поширені запитання

Для чого використовується сервер MCP Sinch?

Sinch — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Sinch з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Sinch з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Sinch із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Sinch, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Sinch до TypingMind?

Sinch працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Sinch у TypingMind?

Sinch надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Sinch?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Sinch потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇