Publish your MCP server in 10 minutes
You keep running your server. MCP.co.tz gives it a permanent address, a listing and a gateway in front of it. By the end of this guide, agents can call your tools at your-name.mcp.co.tz/mcp.
You need: an MCP server reachable over HTTPS using Streamable HTTP, and a Camel Account. No server yet? Wrap your REST API in about 50 lines.
Run your MCP server
Any language works. With Go, the official SDK serves Streamable HTTP on one endpoint:
package main
import (
"context"
"net/http"
"github.com/modelcontextprotocol/go-sdk/mcp"
)
type SendSMSArgs struct {
To string `json:"to" jsonschema:"phone number in +255 format"`
Message string `json:"message" jsonschema:"text, up to 918 characters"`
}
func main() {
server := mcp.NewServer(&mcp.Implementation{Name: "sendafrica-mcp", Version: "1.0.0"}, nil)
mcp.AddTool(server, &mcp.Tool{Name: "send_sms", Description: "Send an SMS to a Tanzanian number."},
func(ctx context.Context, req *mcp.CallToolRequest, in SendSMSArgs) (*mcp.CallToolResult, any, error) {
// Call your existing REST API here, with the key the agent sent.
key := req.Extra.Header.Get("X-Api-Key")
id, err := sendViaREST(ctx, key, in.To, in.Message)
if err != nil {
return nil, nil, err
}
return &mcp.CallToolResult{Content: []mcp.Content{&mcp.TextContent{Text: "Sent. Message ID " + id}}}, nil, nil
})
handler := mcp.NewStreamableHTTPHandler(func(*http.Request) *mcp.Server { return server }, nil)
http.Handle("/mcp", handler)
http.ListenAndServe(":8080", nil)
}Connect it in the dashboard
Open Connect a server in the console and paste your URL. The setup guide runs initialize and tools/list, drafts your listing from your tools, and asks how agents authenticate. There are no forms to fill in, and you can leave and resume any time.
Submit for review
An admin checks the name, tools and reachability, usually within 48 hours. You get a notification in the console and an email either way.
Only accept calls from the gateway
Every call we forward carries X-MCP-Co-Tz-Request-Id and X-MCP-Co-Tz-Server. Log the request ID: consumers quote it when something fails, and it’s searchable in your request log.
X-MCP-Co-Tz-Request-Id: req_e019c47a2bd8f1e60c5ab7d4
X-MCP-Co-Tz-Server: sendafrica
X-Forwarded-For: 41.59.x.x
Traceparent: 00-4bf92f35…-01What the gateway forwards
| Header | To your server |
|---|---|
Your declared auth header | Forwarded unchanged, never stored or logged |
Mcp-Session-Id, Mcp-Protocol-Version, Last-Event-Id | Forwarded |
Content-Type, Accept, User-Agent, Traceparent | Forwarded |
Cookie, Authorization (unless declared), proxy headers | Stripped |
Set-Cookie, Server, X-Powered-By (from you) | Stripped before the client |
Errors the gateway returns
These come from the gateway, as JSON with a request ID. Anything your server returns, including your own 401, passes through untouched. Full list in Error codes.