For the complete documentation index, see llms.txt. This page is also available as Markdown.

MCP

How to connect Bots.Business MCP to your AI client

Bots.Business supports MCP — Model Context Protocol.

MCP allows AI clients to connect to your Bots.Business account and use available tools through secure OAuth authorization.

For most users, the setup is simple: add the MCP server URL to your AI client and connect your Bots.Business account.

MCP Server URL

Use this URL:

https://appapi.tgbot.ai/mcp

Add it as an MCP server URL in your AI client.

After that, the AI client should open the Bots.Business login page. Log in to your Bots.Business account and approve the connection.

Your Bots.Business password is not shared with the AI client. The connection uses OAuth authorization.


Basic setup

  1. Open MCP / Connectors settings in your AI client.

  2. Add MCP server URL:

https://appapi.tgbot.ai/mcp
  1. Click Connect.

  2. You will be redirected to Bots.Business login.

  3. Log in to your Bots.Business account.

  4. After successful login, the AI client will receive access to Bots.Business MCP tools.


ChatGPT Connector setup

If Bots.Business MCP is used as a ChatGPT Connector, the end user usually does not need to configure OAuth manually.

The connector administrator should use this MCP URL:

OAuth must be enabled.

The ChatGPT OAuth redirect URL is supported:

After the connector is configured, the user only needs to click Connect, log in to Bots.Business, and start using the available tools.


For generic MCP clients

Bots.Business MCP server URL:

OAuth discovery endpoints:

OAuth endpoints:

OAuth parameters:

Important: resource must be the external base URL without /mcp.

Correct:

Incorrect:


Transport

Bots.Business MCP v1 supports stateless Streamable HTTP JSON-RPC.

Use:

Example request:

GET /mcp is not supported and will return:

This is expected behavior. MCP clients should use POST /mcp.

SSE is not used in v1.


Manual checks

Check OAuth discovery:

Check MCP initialize:

To call tools, use an OAuth access token:


Troubleshooting

GET /mcp returns 405

This is normal.

Bots.Business MCP works through POST /mcp.

Use:

Do not use:


wrong_resource error

If the token is rejected with wrong_resource, the OAuth resource does not match the external base URL.

The correct resource is:

It must not include /mcp.

If the application is running behind a proxy, make sure the backend sees the correct external protocol and host.

For example, if the backend thinks its base URL is:

or another internal host, the MCP token may be rejected as wrong_resource.

Check your proxy headers and external base_url configuration.


Summary

For most users, only one URL is needed:

Add it to your AI client, click Connect, log in to Bots.Business, and the MCP tools will become available

Last updated