Connect to an Infobip MCP server

|

View as Markdown

MCP(opens in new tab) is an open protocol that standardizes how applications provide context to AI models. Infobip MCP servers let AI agents use Infobip products.

As an outcome of this guide, you will have an MCP client connected to an Infobip MCP server and be able to use Infobip products through an AI agent. The guide uses the Infobip Message MCP server as an example. The steps use Cursor(opens in new tab) and Claude Code(opens in new tab) as examples, but the same approach applies to any MCP client that supports the streamable HTTP transport.

Note

If you use Claude Desktop, see the separate Claude Desktop integration guide.

Prerequisites [#prerequisites]

  • Infobip account. If you do not have one, create a free trial account.
  • An MCP client that supports the streamable HTTP transport, such as Cursor or Claude Code.
  • For API key authentication: an Infobip API key with the correct scope for the MCP server you want to use. You can manage your API keys from your Infobip account.

Infobip MCP server settings [#infobip-mcp-server-settings]

Infobip MCP servers use the streamable HTTP transport, so you only need the server URL. You do not need to install any local packages.

The examples in this guide use the Infobip Message MCP server, https://mcp.infobip.com/message, which sends SMS, MMS, RCS, and Viber messages and checks their delivery status. For the list of all Infobip MCP servers, see Available MCP servers.

Choose an authentication method, OAuth or API key.

OAuth [#oauth]

Key points:

  • Your MCP client must support OAuth 2.1 authentication and dynamic OAuth authorization server metadata discovery(opens in new tab).
  • The MCP server lists the scopes it requires in its 401 Unauthorized response and at {mcp-server-url}/.well-known/oauth-protected-resource, for example, https://mcp.infobip.com/message/.well-known/oauth-protected-resource. Most MCP clients use these scopes automatically(opens in new tab).
  • Some MCP clients do not use the advertised scopes in all flows. If your client does not request the scopes, configure them manually in your client settings.
mcp.json
1{
2 "mcpServers": {
3 "infobip-message": {
4 "type": "http",
5 "url": "https://mcp.infobip.com/message"
6 }
7 }
8}

When you connect to the server, your MCP client opens the Infobip login screen.

API key [#api-key]

Key points:

  • You can access and edit your API key from your Infobip account.
  • Your API key must include the correct scope depending on the MCP server you want to integrate. For example, to use the Message MCP server, your API key needs the messages-api:message:send scope. Find out more about scopes in API Authorization.
mcp.json
1{
2 "mcpServers": {
3 "infobip-message": {
4 "type": "http",
5 "url": "https://mcp.infobip.com/message",
6 "headers": {
7 "Authorization": "App <YOUR_INFOBIP_API_KEY>"
8 }
9 }
10 }
11}

Replace <YOUR_INFOBIP_API_KEY> with your Infobip API key. To connect to a different Infobip MCP server, replace the URL with the URL of that server.

Keep your API key private

The MCP client stores your API key in its config file. Do not share this file or commit it to version control.

Connect Cursor to the Infobip MCP server [#cursor-mcp-integration-steps]

  1. Open Cursor and navigate to Cursor Settings.
  2. On the left-hand side, click MCP.
  3. Click +Add new global MCP server.
  4. Populate the mcp.json file with the Infobip MCP server settings (see Infobip MCP server settings).
  5. Restart Cursor.
  6. Confirm the MCP server is enabled and the list of tools appears.
  7. Open the chat and prompt the AI agent to use an Infobip tool, for example, ask it to send an SMS message to your phone number.

Connect Claude Code to the Infobip MCP server [#claude-code-mcp-integration-steps]

Claude Code(opens in new tab) is a command-line AI assistant. Add Infobip MCP servers with the claude mcp add command.

  1. In your terminal, add the Infobip MCP server.

    OAuth

    bash
    1claude mcp add --transport http infobip-message https://mcp.infobip.com/message

    API key

    bash
    1claude mcp add --transport http infobip-message https://mcp.infobip.com/message \
    2 --header "Authorization: App <YOUR_INFOBIP_API_KEY>"

    OAuth with manually configured scopes

    Claude Code uses the scopes that the MCP server requires. To set the scopes yourself, add the server with the oauth.scopes setting:

    json
    1claude mcp add-json infobip-message \
    2 '{"type":"http","url":"https://mcp.infobip.com/message","oauth":{"scopes":"messages-api:manage profile"}}'

    Separate the scopes with spaces. For the scopes that each MCP server supports, open {mcp-server-url}/.well-known/oauth-protected-resource.

    By default, the server is available only in the current project. To make it available in all your projects, add --scope user to the command. The --scope option sets where Claude Code stores the server. It does not set OAuth scopes.

  2. Check the connection status.

    bash
    1claude mcp list

    A server that uses an API key shows ✔ Connected. A server that uses OAuth shows ! Needs authentication until you log in.

  3. OAuth only: Start Claude Code and run the /mcp command, or run claude mcp login infobip-message in your terminal. Follow the steps in the browser window that opens to log in to your Infobip account.

  4. Prompt Claude Code to use an Infobip tool, for example, ask it to send an SMS message to your phone number.

Additional resources [#additional-resources]

Was this page helpful?