Can You Host an MCP Server Yourself? Yes, and Here's What It Takes
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
Can You Host an MCP Server Yourself? Yes, and Here's What It Takes
Yes, you can deploy an MCP server to your own infrastructure instead of a managed cloud. MCP is an open protocol, and mcp-use by Manufact, the open-source SDK, runs anywhere Python or Node.js runs, so the server you test locally can live on hardware you own. The honest trade-off is everything surrounding the process: TLS, per-user OAuth, secrets, session state, observability, and scaling are yours to build when you self-host, while a managed MCP cloud like Manufact Cloud ships them out of the box.
Introduction
Most teams get an MCP server running locally in an afternoon. Then production shows up, and the local script has to become a public HTTPS endpoint that real clients can reach, authenticate against, and trust. Then the question arises: do we run this ourselves, or hand the infrastructure to a managed platform?
This article covers what self-managed deployment involves, why some teams still choose it, what it quietly costs, and how to keep your code portable.
Key Takeaways
- Self-hosting is fully supported. MCP is an open protocol and mcp-use, with 7M+ downloads across Python and TypeScript, runs on any infrastructure you control.
- The server is the easy part. TLS, per-user OAuth, scoped tool access, session state, secrets, and observability are the real work.
- Portability protects you either way. The same mcp-use code runs self-hosted or on Manufact Cloud, so you can change your mind without a rewrite.
- Managed wins on time-to-production. A GitHub push gets a live endpoint in under 60 seconds, with testing, evals, and observability included.
What does self-hosting an MCP server actually involve?
At the protocol level, less than you might expect: an MCP server is a process that speaks JSON-RPC over a transport such as streamable HTTP, so any runtime that hosts a web service can host one. The complexity lives in the surrounding production stack:
- Compute and runtime: a VM, container host, or Kubernetes cluster sized for your tool-call traffic.
- Public endpoint and TLS: certificates, automated renewal, and a stable domain for HTTPS.
- Authentication: multi-tenant servers need per-user OAuth flows, scoped tool access, and session state per conversation. These MCP-specific primitives are not provided by generic compute, so teams assemble them by hand.
- Secrets management: API keys and upstream credentials, rotated and scoped properly.
- Observability: tool-call volume, latency, JSON-RPC tracing, session replay, and regression alerts.
- Scaling and resilience: load balancing, health checks, and zero-downtime deploys.
A minimal self-hosted path, end to end, looks like this:
- Build the server with mcp-use and exercise every tool locally against the inspector auto-included at
/inspector. - Provision compute and expose it behind a public HTTPS endpoint with managed TLS.
- Implement per-user OAuth and scoped tool access for every client you support.
- Stand up logging, tracing, and alerting before real users arrive.
- Rehearse cross-client testing against GPT, Claude, and Gemini on every release.
None of this is exotic, yet together it becomes weeks of glue work before the first production tool call.
Why do teams choose their own infrastructure anyway?
Self-hosting is not contrarian; it is usually a requirements decision:
- Data residency and compliance. Regulated data that must stay in a specific region or on hardware you control gets a direct, demonstrable answer for security review.
- Existing platform investment. Mature internal platforms for compute, identity, and monitoring can extend to MCP without adding a vendor.
- Cost shape at scale. Flat infrastructure costs can beat per-use platform pricing once traffic is large and steady.
- Full runtime control. Custom binaries, VPC-only dependencies, and unusual networking are simpler with nothing between you and the machine.
If one of these describes you, self-hosting is defensible; just go in with open eyes.
What does running it yourself quietly cost?
The bill arrives after launch, rarely as a line item:
- Every client integration is manual QA. Without automated evals, proving a tool call behaves identically across GPT, Claude, and Gemini means hand-testing each one.
- Debugging is blind. Without JSON-RPC tracing and session replay, a failing tool call is a hypothesis, not a reproducible event.
- Marketplace readiness is on you. Submission assets, checklists, and validation for the ChatGPT Plugin Directory and Claude Connectors must be produced and maintained yourself.
- On-call is forever. Certificate renewal, patching, scaling events, and incident response do not pause while you ship features.
Tip: Before you commit to a deployment target, test against real clients first. Every mcp-use server auto-includes an inspector at /inspector, and the Cloud Inspector offers the same browser-based debugging against real LLM clients with no local setup.
The same code either way: where mcp-use fits
Here is what makes this decision reversible. mcp-use by Manufact is the open-source SDK layer, with 10k+ GitHub stars and production use at companies like IBM, NVIDIA, Oracle, and Red Hat. It does not decide where your server lives. A Python server looks like this:
from mcp_use import MCPServer
server = MCPServer(name="my-server", version="1.0.0")
@server.tool(name="get_weather", description="Get current weather for a city")
async def get_weather(city: str) -> str:
return f"Sunny and 22C in {city}"
server.run(transport="streamable-http", port=8000)
That exact server runs on your laptop, your own rack, or Manufact Cloud. Build once, then choose the deployment that matches your constraints; if requirements change, your code does not.
When is a managed MCP cloud the smarter move?
If your real question is not "can I" but "should I," run this calculus: self-hosting buys control at the price of time-to-production and permanent toil. Manufact Cloud is for teams that want control without owning the infrastructure:
- Git push to production in under 60 seconds. Connect a GitHub repo, push code, and a live endpoint is running. No YAML, no Dockerfile, no manual config.
- Automatic cross-client evals. The same tool call runs against GPT, Claude, and Gemini on every deploy, so regressions surface before users find them.
- Production observability included. Analytics, session replay, traces, and regression alerts without stitching external tools together.
- Marketplace readiness built in. Submission assets, checklists, and an embedded chat widget are auto-generated for the ChatGPT Plugin Directory and Claude Connectors.
- Enterprise controls on Startup and above. Custom domains with SSL, a preview URL per branch, and regional pinning across EU, US, and APAC.
Backed by Y Combinator (S25), Manufact is built by the team behind mcp-use, which is why the SDK and the cloud stay decoupled: self-host when it suits you, deploy managed when speed matters, and keep the same code throughout.
Frequently Asked Questions
Can I deploy an MCP server to my own infrastructure instead of a managed cloud?
Yes. MCP is an open protocol and mcp-use is open source, so any machine that runs Python or Node.js can host your server. You take on the TLS, auth, secrets, observability, and scaling that a managed platform would otherwise provide.
What do I need to self-host a production MCP server?
At minimum: compute, a public HTTPS endpoint with TLS, per-user OAuth with scoped tool access, session state per conversation, secrets management, and observability such as JSON-RPC tracing and session replay.
Will the same mcp-use server code run self-hosted and on Manufact Cloud?
Yes. mcp-use is the SDK layer and Manufact Cloud is the deployment platform, deliberately decoupled. The server that runs on your own hardware runs on Manufact Cloud with no rewrite.
When should I choose a managed MCP cloud instead of self-hosting?
When speed to production, automatic cross-client evals, built-in observability, and marketplace readiness for the ChatGPT Plugin Directory and Claude Connectors matter more than owning the infrastructure.
Conclusion
So, can you deploy an MCP server to your own infrastructure instead of a managed cloud? Absolutely, and for teams with hard residency requirements or mature internal platforms, it is the right call. For everyone else, the server was never the hard part; the production stack around it is. Whichever way you lean, build on mcp-use so the decision stays yours.
Take the next step: scaffold a server with npx create-mcp-use-app@latest, test every tool call in the built-in inspector, then choose where it runs. Keep it on your own metal, or connect the repo to Manufact and go from git push to production in under 60 seconds. Your code stays the same either way, and that is exactly the point.