1. Deploy a server to Heroku
Choose the hosting mode that fits your use case:- STDIO mode – Package your MCP server as a Heroku app that communicates over STDIO. Follow the STDIO server guide for language-specific examples.
- Remote mode – Wrap a HTTP/WebSocket server and deploy it to Heroku. See the remote server guide for the manifest format, signing requirements, and WebSocket upgrade handling.
- Public URL (for remote servers).
- API key or auth headers (if your server requires authentication).
- Tool definitions (names, descriptions, input schema).
2. Publish a manifest
Every agent needs a manifest that describes the tools and that points at your Heroku endpoint. For a remote server, createmcp.json:
https://your-app.herokuapp.com/.well-known/mcp.json (remote) or bundle it into your STDIO server so agents can read the metadata.
3. Connect to Claude
Claude Desktop and Claude for Web both support MCP manifests.Claude Desktop
- Open the settings file. On macOS it lives at
~/Library/Application Support/Claude/resources/claude_desktop_config.json. - Add your Heroku MCP server:
- Restart Claude Desktop. The tools appear under the MCP section when you start a new conversation.
Claude Workbench / API
When calling the Anthropic Agents API, include your tools as MCP resources:4. Connect to ChatGPT / OpenAI agents
OpenAI supports MCP through manifests or the Assistants API.ChatGPT (web)
- Visit https://platform.openai.com/mcp and click Add MCP server.
- Enter the manifest URL from Heroku and supply any auth headers.
- Enable the server for the GPTs or workspaces that should use the tools.
Assistants API
Include your MCP server when creating or running an assistant:5. Secure access
- Authentication: Protect remote endpoints with HTTPS and an auth layer (basic auth, API keys, or OAuth). Pass credentials via agent configuration.
- Logging: Use Heroku log drains or add structured logging to observe tool usage and troubleshoot agent calls.
- Rate limits: Add Heroku rate limiting (e.g., Shield add-on) or guardrails in the MCP server to block abusive traffic.
6. Extend beyond Claude and ChatGPT
MCP is an open standard. The same manifest works with any compatible agent runtime (Cursor, VS Code Copilot, etc.). Keep your server stateless, document tool schemas carefully, and agents will interoperate without custom adapters.Next steps
- Review the Heroku tools reference for built-in automation.
- Explore the working with MCP guide for local testing techniques.
- Add automated tests for your MCP server endpoints so you can catch regressions before connecting agents in production.