# Build a ChatGPT Connector (MCP server)

**Author:** Anthony Shew

---

ChatGPT can now connect with MCP servers, making the data, APIs, and other tools you use every day available in your ChatGPT sessions. This guide will walk you through the steps to build and deploy an MCP server to use as a ChatGPT Connector.

## Connect your MCP server to ChatGPT

1. [Choose a template](https://vercel.com/new/clone?demo-description=Run%20an%20Model%20Context%20Protocol%20\(MCP\)%20server%20on%20Vercel.&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F73N0dZEENNBHEK030NFGlR%2F643235f2fbd7c082c7333bb315fab891%2FMCP__6_.jpg&demo-title=MCP%20with%20Vercel%20Functions&demo-url=https%3A%2F%2Fmcp-on-vercel.vercel.app&from=templates&project-name=MCP%20with%20Vercel%20Functions&repository-name=model-context-protocol-mcp-with-vercel-functions&repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fmcp-on-vercel) to get started.
   
2. Once the deployment is created, copy the URL. Your MCP server is ready for a client to connect at the `/mcp` route.
   
3. Now, [follow ChatGPT’s documentation](https://platform.openai.com/docs/guides/developer-mode) to create a connector. Enable “Developer Mode” in your Advanced settings, and then add your MCP Server in the Connectors tab.
   

Your MCP server is now available in your ChatGPT session.

## Test your MCP server

1. Start a new chat on ChatGPT.
   
2. Enable Developer Mode.
   
3. Click on “Add sources” and select your MCP server.
   
4. Ask ChatGPT "Use the roll\_a\_die tool to get a number" to run the tool in the MCP server.
   
5. On ChatGPT’s response, the tool implemented by the MCP will be called.
   

## What is an MCP server?

MCP servers give AI models access to external capabilities. By connecting ChatGPT to an MCP server, your chat in ChatGPT quickly becomes an agent that is able to interact with the tools you use every day.

For example, you can [connect ChatGPT to Vercel](https://vercel.com/docs/mcp/vercel-mcp#chatgpt) using Vercel’s own MCP server. Once authenticated, ChatGPT can interact with your projects, deployments, and fetch documentation to help you build software.

## Benefits of deploying your MCP server to Vercel

**Optimized cost**: [Fluid compute](https://vercel.com/fluid) intelligently re-uses existing resources. This means Vercel Functions can be billed at Active CPU pricing, so you only pay for the compute you use. MCP servers benefit from this model due to their long idle times and quick message bursts.

**Deployment previews**: [Preview deployments](https://vercel.com/docs/deployments/environments#preview-environment-pre-production) allow you to test out your changes before going live. To try out your MCP server, you can simply change the URL in ChatGPT and try them out.

**Instant Rollbacks**: If you deploy to production and don’t like the results, you’re able to roll back to a previous version of your MCP server in milliseconds. This is great for recovering from bugs, breaking changes, or unintended changes to your product.

**Secure by default**: [Vercel Firewall](https://vercel.com/docs/vercel-firewall) is a best-in-class, multi-layered protection layer with a platform-wide firewall to automatically protect from abnormal traffic, like DDoS attacks, and web application firewall to define custom rules for your specific needs.

## Ship more in the AI Cloud

Vercel is the unified platform for AI workloads. Whether you're shipping [an MCP server](https://vercel.com/docs/mcp/deploy-mcp-servers-to-vercel), [agents](https://vercel.com/docs/agents), [running generated code](https://vercel.com/docs/vercel-sandbox), or [analyzing bot traffic to your existing application](https://vercel.com/docs/botid), we're here to help.

---

[View full KB sitemap](/kb/sitemap.md)
