Benchmark

Claude Code is 4.2x faster & 3.2x cheaper with CustomGPT.ai plugin. See the report →

CustomGPT.ai Blog

How do I Connect MCP to My Chatbot?

You connect MCP to your chatbot by pointing an MCP-aware client (like ChatGPT, Claude, or a custom agent SDK) at a compatible MCP server. With CustomGPT.ai, your agent already exposes a Hosted MCP Server, you just grab its URL and token, then plug those into your chosen client.

TL;DR

Connect MCP to your chatbot by enabling the Hosted MCP Server in your CustomGPT.ai dashboard to retrieve your secure URL and token. Simply paste these credentials into any MCP-aware client, like ChatGPT or Claude Desktop, to instantly authorize your assistant to access your agent’s specific tools and knowledge base without complex integration code. Scope: Last updated: January 2026. Applies globally; align chatbot and MCP data access with local privacy laws such as GDPR in the EU and CCPA/CPRA in California.

What MCP is and how it connects to chatbots

Model Context Protocol (MCP) is an open standard that lets AI applications, such as chatbots, connect to external tools, data sources, and workflows over a common “port.” Think of it as a universal way for models to talk to APIs, databases, file systems, and more, without custom integrations per tool. MCP uses a client–server model. Your chatbot (or AI assistant host, like ChatGPT) runs an MCP client. That client connects to one or more MCP servers. Each server exposes tools, resources, and prompts that the chatbot can discover and call dynamically during a conversation. When your chatbot is MCP-enabled, it can:
  • List tools exposed by the server (for example, “search_kb”, “create_ticket”).
  • Request additional context from resources like knowledge-base documents.
  • Execute actions by invoking tools, with arguments encoded in JSON-RPC.
So “connecting MCP to your chatbot” essentially means: configuring your chatbot’s MCP client to talk to the MCP server that has the tools and data you care about.

Common ways to connect MCP to a chatbot

There are two main patterns for connecting MCP to your chatbot:

1. Using built-in MCP support in AI assistants

Some platforms, like ChatGPT, include built-in UI for adding remote MCP servers via “connectors.” You paste the MCP server URL and, where required, an auth token. The platform then discovers tools from that server and surfaces them as actions the model can call. Typical flow:
  1. Open the AI assistant’s settings.
  2. Find the MCP / connectors / tools section.
  3. Add a new MCP server and paste the URL.
  4. Provide any token or credentials required.
  5. Enable the tools for the assistant or specific workspace.
From that point, your chatbot can call those tools within conversations, respecting whatever permissions the MCP server exposes.

2. Using a custom MCP client or agent SDK

If you’re building your own chatbot, you can use an MCP-aware SDK, like the OpenAI Agents SDK, to connect programmatically to a remote MCP server. At a high level:
  1. Instantiate an MCP client in your code.
  2. Configure it with the MCP server’s URL and authentication.
  3. Use the SDK to list tools and resources from that server.
  4. Wire tool calls into your chatbot’s reasoning loop (for example, using OpenAI’s Responses API with hosted MCP tools).
  5. Surface results back to the end user as messages or actions.
This pattern is ideal when you want a custom UX or multi-agent orchestration while still reusing existing MCP servers.

What you need before connecting

Before you configure the connection, ensure you have the necessary components ready on both the client and server sides. Since CustomGPT.ai handles the server infrastructure, your requirements are minimal:
  • A CustomGPT.ai Project (The Server): You need an active project populated with data (documents, sitemaps, or FAQs). This acts as the “brain” your chatbot will query.
  • An MCP-Aware Client (The Interface): This is the application you interact with. Common options include:
    • Claude Desktop App: Ensure you have the latest version installed on your local machine.
    • ChatGPT: You typically need a Plus, Team, or Enterprise plan to access advanced data connectors.
    • Agentic IDEs: Tools like Cursor or Windsurf if you are integrating into a coding workflow.
  • Configuration Access:
    • For Claude/Local Clients: You must be comfortable locating and editing JSON configuration files (specifically claude_desktop_config.json) on your computer.
For ChatGPT: Ensure you have access to “Developer Mode” or the “Connectors” settings in your account.

How to do it with CustomGPT.ai

MCP connection flow maps eight CustomGPT.ai steps from agent setup to connected chat using URL and MCP token.

  This section walks you through connecting MCP to your chatbot using CustomGPT.ai’s Hosted MCP Server. Your CustomGPT agent already exposes an MCP endpoint you can plug into ChatGPT, Claude Desktop, or any MCP-compatible client.

7-step setup overview

  1. Create or choose a CustomGPT.ai agent that has the content and tools you want your chatbot to use.
  2. Enable or locate the Hosted MCP Server for that project in the CustomGPT dashboard.
  3. Copy the MCP server URL from the “Deploy → MCP Server” section.
  4. Copy the MCP token from the same page, this secures your server.
  5. Choose an MCP client (ChatGPT connectors, Claude Desktop, or another MCP-capable tool).
  6. Configure the client with the URL and token, then save.
  7. Test and adjust MCP permissions so your chatbot only gets the access you intend.

Prepare your CustomGPT.ai agent and Hosted MCP server

Start by creating or selecting the CustomGPT.ai agent whose knowledge and tools you want your chatbot to use. That agent can be connected to docs, sites, or other content as usual. In the project, go to the Deploy section and open MCP Server. CustomGPT.ai provides a Hosted MCP Server for each project so external AI systems can connect via a secure, permission-controlled interface. Confirm that:
  • The MCP server is enabled for your project.
  • The project has the documents and tools you expect (for example, your knowledge base or custom actions).

Get your CustomGPT MCP server URL and token

On the same Deploy → MCP Server page, you’ll see the Server URL and a way to obtain your MCP token.
  • The server URL typically looks like: https://mcp.customgpt.ai/projects/<project-id>/sse?token=..
  • The token is fetched from the CustomGPT app under Project → Deploy → MCP Server.
Treat the token like a password:
  • Don’t hard-code it in public repos.
  • Use environment variables or secrets managers in production.
These two values (URL + token) are exactly what your MCP client will need.

Connect your chatbot or MCP client (ChatGPT, Claude, or other tools) to CustomGPT.ai

Now plug those values into your chosen MCP-aware client. The specifics vary slightly, but the pattern is the same. With ChatGPT connectors
  1. Open Settings → Connectors in ChatGPT.
  2. Click Create and choose the option to add an MCP server.
  3. Paste the CustomGPT MCP Server URL into the “MCP Server URL” field.
  4. Provide the MCP token when prompted.
  5. Save the connector and enable it for the assistant you’re using.
By default, the CustomGPT MCP connector in ChatGPT is scoped mainly to reading your agent’s documents and sending messages, as documented in the CustomGPT guide. With other MCP clients (for example, Claude Desktop or tools like Trae)
  1. In the client’s MCP configuration, add a new MCP server.
  2. Paste the CustomGPT server URL.
  3. Configure authentication with your CustomGPT MCP token.
  4. Save the configuration and restart or reload the client if required.
The client will then list the CustomGPT tools and resources it can access.

Test and secure the MCP connection

Once connected, you should:
  1. Open your chatbot or MCP client and start a test conversation.
  2. Ask a question that clearly targets your CustomGPT knowledge (for example, “Answer from my CustomGPT knowledge base: …”).
  3. Confirm that the response is grounded in your project’s documents, not general web knowledge.
  4. In the CustomGPT dashboard, open MCP server permissions and review what external AI systems are allowed to do (read documents, run tools, etc.).
  5. Disable any permissions you don’t need to enforce least-privilege access.
If something doesn’t work, double-check the server URL, token, and any firewall or network requirements. Re-saving the configuration often forces the client to re-discover tools. Using MCP doesn’t mean broadcasting your data to the world. The connection is local to your machine. The CustomGPT MCP server respects the same strict access controls and RAG privacy standards as our standard API. The AI model only sees the specific snippets it retrieves to answer your question, nothing else.

Example: customer-support chatbot using MCP

Imagine you already have a CustomGPT.ai agent trained on your support docs, FAQs, and internal runbooks. You want a separate chatbot in ChatGPT to answer customer questions using that content, without copying all the data again. You deploy your CustomGPT agent as an MCP server and copy its MCP URL and token. In ChatGPT, you add a new connector using that URL and token. Now, when a user asks, “How do I reset my password? Answer from our support knowledge base,” ChatGPT calls the CustomGPT MCP server behind the scenes. The server fetches the right article, the model generates an answer grounded in that document, and the user sees a clear, accurate response, powered by your CustomGPT agent but delivered through your ChatGPT-based chatbot. The same pattern works with Claude Desktop or any MCP-compatible tool: one MCP server, many chatbots reusing the same knowledge and tools.

Conclusion

Connecting powerful tools to your assistant shouldn’t force you to choose between brittle custom code and generic, one-size-fits-all chatbots. customgpt.ai bridges that gap with hosted MCP servers, secure permissions, and instantly reusable agents that plug into ChatGPT, Claude, or any MCP client without the integration headaches. If you’re ready to turn scattered systems into one intelligent, controllable assistant layer, get started with CustomGPT.ai and connect MCP to your chatbot today.

Frequently Asked Questions

Do the external systems I want to connect need to be MCP compliant?

Usually no. What needs to be MCP-aware is the client your chatbot uses, such as ChatGPT, Claude, or a custom agent SDK, plus the MCP server it connects to. The underlying system can still be a regular API, database, or knowledge source if the MCP server exposes it as tools or resources the chatbot can discover and use.

Do I need a custom SDK, or can I use ChatGPT or Claude directly?

You can often start with ChatGPT or Claude directly if you want the fastest way to test a Hosted MCP Server, because the connection flow is simply adding the server URL and token in an MCP-aware client. Use a custom SDK when the chatbot needs to live inside your own app, follow custom authentication rules, or control tool use in code. Barry Barresi described that custom-build route this way: “Powered by my custom-built Theory of Change AIM GPT agent on the CustomGPT.ai platform. Rapidly Develop a Credible Theory of Change with AI-Augmented Collaboration.”

What do MCP Server Permissions allow me to do if I connect in Claude?

In an MCP-aware client such as Claude, permissions determine which server-exposed tools and resources the assistant can use after you connect the MCP server. In practice, that means you can limit the assistant to only the knowledge and actions a workflow needs. A safe default is least privilege: enable only the specific tools required for the task, especially when a tool can trigger an external action rather than just retrieve information.

How do I secure an MCP connection to a third-party chatbot?

Keep the Hosted MCP Server URL and token private, expose only the tools the bot actually needs, and align data access with local privacy rules such as GDPR in the EU and CCPA/CPRA in California. The provided credentials also state that CustomGPT.ai is SOC 2 Type 2 certified, GDPR compliant, and does not use customer data for model training. If a tool can take actions, start with the narrowest access scope possible instead of enabling broad permissions from day one.

Can I connect an Azure-hosted chatbot or other custom bot to the Hosted MCP server?

Yes. Azure is just the hosting environment, so your bot still needs an MCP-aware client or agent SDK to talk to the Hosted MCP Server. The usual flow is to run the MCP client in your app, add the server URL and token, then map the discovered tools into your bot’s conversation flow. Aslan AI’s founder highlighted the value of flexible integration with this quote: “From beginning to end of the project, CustomGPT was the solution. With further integration of new features, we might even abandon some tools like Bubble or ChatPDF.”

Can one Hosted MCP server power multiple chatbots?

Yes. A single MCP server can be used by multiple MCP-aware chatbots if they all need the same tools and the same knowledge access. If different bots should not share the same tool set or knowledge base, connect them to different agents instead of reusing one broad connection. Evan Weber summarized the deployment value this way: “I just discovered CustomGPT, and I am absolutely blown away by its capabilities and affordability! This powerful platform allows you to create custom GPT-4 chatbots using your own content, transforming customer service, engagement, and operational efficiency.”

3x productivity.
Cut costs in half.

Launch a custom AI agent in minutes.

Instantly access all your data.
Automate customer service.
Streamline employee training.
Accelerate research.
Gain customer insights.

Try 100% free. Cancel anytime.