engineering
How to publish an MCP server so everyone in your company can use it
A step-by-step guide to deploy a remote MCP server for the whole company: Streamable HTTP over TLS, per-user OAuth, one registration per assistant platform, and versioned tools you can roll back.
Why can’t a local stdio MCP server be shared across a company?
A local stdio MCP server runs as a subprocess on one laptop, with one person’s credentials, and every client must be configured by hand. To let everyone use it from Claude, ChatGPT and Copilot, deploy it as a remote Streamable HTTP endpoint behind TLS, add per-user OAuth, register it once per platform and version its tools.
This guide is for the AI engineer who already has a working stdio server. It covers four steps, in order:
| Step | What changes | Done when |
|---|---|---|
| 1. Make it remote | stdio becomes Streamable HTTP on a public or tunnelled HTTPS URL | MCP Inspector lists your tools over https://…/mcp |
| 2. Per-user OAuth | Each request carries a token for one named person | A user without access gets a 403, not data |
| 3. Distribute | One registration per platform, not per laptop | A non-technical colleague connects in two clicks |
| 4. Version and own it | Tool changes are versioned, logged and reversible | You can roll back in minutes and say who called what |
The facts about Claude, ChatGPT and Copilot Studio below were checked against their official documentation in late October 2026. These products change monthly, so recheck a menu name before you rely on it.
How do you deploy a remote MCP server?
Switch the transport from stdio to Streamable HTTP and serve it on one HTTPS path, usually /mcp. Bind the application to localhost or a private network, put a TLS-terminating reverse proxy in front, validate the Origin header, and test the public URL with MCP Inspector before you connect any assistant.
The MCP specification defines exactly two standard transports. With stdio, the client launches your server as a subprocess. With Streamable HTTP, each message is an HTTP POST to a single endpoint, and replies come back as JSON or a short SSE stream (MCP specification, transports, revision 2026-07-28). The older HTTP+SSE transport is deprecated, and Microsoft Copilot Studio stopped supporting it after August 2025 (Microsoft Learn, 2025).
| stdio | Streamable HTTP | |
|---|---|---|
| Where it runs | On each user’s machine | On your infrastructure, once |
| Credentials | Read from that user’s environment | OAuth bearer token on every request |
| Who can use it | Whoever installed and configured it | Anyone you authorise, from any client |
| Updates | Each user reinstalls | You deploy once |
| Claude.ai, ChatGPT, Copilot Studio | Not reachable | Supported |
With FastMCP in the official Python SDK, only the run call changes (illustrative example):
# Illustrative example
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("finance-tools", host="127.0.0.1", port=8000)
@mcp.tool()
def get_invoice(invoice_id: str) -> dict:
"""Return one invoice the caller is allowed to see."""
...
if __name__ == "__main__":
# was: mcp.run() (stdio)
mcp.run(transport="streamable-http") # serves POST /mcp
A minimal deployment descriptor, also illustrative, to adapt to your hosting platform:
# deploy/finance-tools.yaml (illustrative example)
service: finance-tools-mcp
image: registry.internal/finance-tools-mcp:1.4.2 # pinned, never :latest
public_url: https://mcp.example.com/finance/mcp # canonical URI, no trailing slash
tls:
min_version: "1.2"
certificate: managed
ingress:
allowed_origins: [] # reject unknown browser Origins with 403
allow_ip_ranges: [] # private servers only: add each vendor's published egress ranges
replicas: 2
healthcheck: /healthz
env:
OAUTH_ISSUER: https://login.example.com
OAUTH_AUDIENCE: https://mcp.example.com/finance/mcp
Which hosting details cause the most trouble?
- Origin validation. The server must check the
Originheader and answer 403 when it is present and invalid. This blocks DNS rebinding attacks (MCP specification, transports, revision 2025-11-25). - Reachability. Claude connects from Anthropic’s cloud, so a server on a private network must allow Anthropic’s published IP ranges (Anthropic, Claude Help Center). ChatGPT needs a public HTTPS endpoint or OpenAI’s Secure MCP Tunnel (OpenAI developer documentation).
- Statelessness. The 2026-07-28 revision of the specification removes protocol-level sessions, which makes horizontal scaling simpler. Clients on older revisions still send
Mcp-Session-Id, so keep session state in a shared store, not in process memory, while both generations coexist.
Run npx @modelcontextprotocol/inspector against the public URL and check that it lists your tools before you touch any assistant.
Why should every user sign in with their own OAuth token?
Every tool call should run as the person who asked, with that person’s token and permissions. A shared service account gives every employee the union of everything the account can read. Your logs say “svc-mcp did it” for the whole company, and one leaked key exposes everyone’s data.
The MCP authorization specification covers HTTP transports, while stdio servers keep reading credentials from the environment (MCP specification, authorization, revision 2025-06-18). Your server acts as an OAuth 2.1 resource server. Your existing identity provider (Microsoft Entra ID, Okta or Keycloak) acts as the authorization server. The same principle sits behind least-privilege access for AI agents: the assistant never holds more rights than the person who asked.
What must the server implement?
- Answer 401 with a pointer. Return
WWW-Authenticatenaming your protected resource metadata URL and, optionally, thescopeneeded. - Publish protected resource metadata (RFC 9728) at
/.well-known/oauth-protected-resource, listing at least oneauthorization_serversentry. - Validate the audience. Accept only tokens issued for your server’s canonical URI. Clients send it as the RFC 8707
resourceparameter. - Never pass the token through. If a tool calls a downstream API, obtain a separate token for that API (token exchange or on-behalf-of). The specification forbids forwarding the client’s token.
- Return 403 for missing scopes, so the client can ask for more instead of failing silently.
{
"resource": "https://mcp.example.com/finance/mcp",
"authorization_servers": ["https://login.example.com"],
"scopes_supported": ["invoices:read", "invoices:approve"],
"bearer_methods_supported": ["header"]
}
Illustrative example, for the fictitious finance server used throughout this guide.
How do you register OAuth clients when the identity provider refuses dynamic registration?
Client registration is where enterprise identity providers often fail. The 2025-11-25 revision recommends Client ID Metadata Documents and keeps Dynamic Client Registration as an optional fallback (MCP specification, authorization, revision 2025-11-25). Many corporate identity providers allow neither, so plan to pre-register one OAuth client per assistant platform. Claude, ChatGPT and Copilot Studio all accept a client ID and secret you supply.
Map scopes to your real authorization model, not to tools. A read scope and an approve scope per business object are easier to review than one scope per tool.
How do you make one MCP server available in Claude, ChatGPT and Copilot Studio?
Register the server at admin level on each assistant platform, so employees only click Connect and sign in. Claude, ChatGPT and Copilot Studio each have an admin path, but that means three separate entries to register and maintain. An MCP gateway, or a layer of agent roles, in front of your servers reduces that to one URL.
| Platform | Admin path (as of October 2026) | What each user does | Auth options | Notes |
|---|---|---|---|---|
| Claude Team / Enterprise | Owner adds it under Organization settings > Connectors > Add > Custom > Web | Opens Connectors, clicks Connect, signs in | OAuth (Claude’s client, automatic registration, or your own client), fixed headers | Connects from Anthropic’s cloud; allowlist its IP ranges if private |
| ChatGPT Business / Enterprise | A member with “Create plugins with MCPs” builds a plugin via Add custom MCP server; an admin sets it to Installed for the workspace or per role in Admin console > Plugins | Uses the installed plugin and connects their account | OAuth or none, set when the server is added | Admins also allow each app’s read and write tools; ChatGPT Business is workspace-wide only |
| Microsoft Copilot Studio | Maker adds the server to an agent with the MCP onboarding wizard, then publishes the agent | Uses the published agent; signs in on first tool use | None, API key, OAuth 2.0 (dynamic discovery, dynamic, or manual) | Streamable HTTP only; needs generative orchestration; supports tools and resources, not prompts |
| MCP gateway | You register your servers once in the gateway | Adds one URL in any client, signs in once | Gateway’s SSO; per-user OAuth to each downstream server | Extra component to run or buy |
| Agent roles (for example skilder) | You add the server once to an internal registry, then publish it inside a role with the skills that make it usable | Adds one URL in any MCP client, signs in once, sees the roles they are allowed to use | Enterprise SSO; OAuth sign-in per user | Extra component to run or buy; the business team owns the role, IT governs access and audit |
For non-technical users, the admin path matters more than the protocol: they should never paste a URL, pick a transport or handle a token. On Copilot Studio, they never see the server at all, only the published agent. The trade-offs between the two central options are covered in how an MCP registry differs from an MCP gateway. Without any of these paths, employees tend to plug in servers of their own, the pattern described in shadow MCP and how it spreads.
Where do agent roles fit?
An agent role packages an MCP server with the method a business team expects, so users get a working capability instead of a raw list of tools. It fits companies that serve several assistants, or that need role-based exposure and a business owner for each capability.
skilder makes a team’s know-how available in everyone’s own AI assistant; the AI itself stays Claude, ChatGPT or Copilot. A role is the container. It bundles the team’s business skills (method, tools, output format), its scoped MCP tools from an internal, curated MCP registry, its rights and, where useful, an app interface. Each role is configured from a blueprint, a reusable starting structure the business team adapts to its own workflow, such as a “credit analyst” or a “site manager” role. The industry calls such bundles plugins, as the comparison of agent plugins and skilder roles explains; skilder calls them agent roles. The business team owns and maintains the role, while IT governs access, permissions, hosting and audit.
The governed MCP layer sits underneath. An admin adds your MCP servers to the workspace (skilder documentation, MCP servers). Employees then add a single Streamable HTTP connection link to Claude, ChatGPT, Copilot Studio, VS Code or any MCP-compatible agent. The link names the workspace and carries no key; identity comes from a browser sign-in through the company’s enterprise SSO on first connect (skilder documentation, connect your agent). Each tool call runs with the requester’s own permissions, so the assistant never acts beyond what that person may do. Hosting is in Switzerland (Infomaniak) and the European Union, with on-premise deployment on request.
It is not the right fit if you serve a single platform and your identity provider already handles OAuth for your server: the native admin connector is simpler and involves one fewer vendor. skilder is also not a pure MCP gateway. If you only need connectivity infrastructure for developer tools, a dedicated gateway is the closer match, and the two can run side by side. On Claude Team and Enterprise, an admin still adds the skilder connector once. If you are weighing which of these paths suits your assistants and your teams, a free 30-minute exchange with an expert is a quick way to test it against your own setup.
How do you version and roll back MCP tools?
Treat each tool’s name, description and input schema as a public API. Version the server with semver, keep the old shape until callers move, and keep the previous image tag so that a rollback is a redeploy taking minutes. Assistants pick tools by reading their descriptions, so a reworded description can change behaviour as much as a code change.
A server published to a whole company is never finished. The AI Capabilities Lifecycle names the six stages it goes through, release after release: Author, Test, Deploy, Control, Monitor and Improve. The rules below cover the last four.
- Version the server with semver and tag every image. Deploy
1.4.2, neverlatest, so rollback is a redeploy of the previous tag. - Classify every change. Patch: bug fix with identical schema and description. Minor: new optional field or new tool. Major: renamed or removed tool, new required field, changed meaning.
- Do not break names in place. Ship
create_invoice_v2next tocreate_invoice, mark the old one as deprecated in its description, and remove it after a stated date. - Pin what you can. Pin server images, SDK versions and any stdio package version. Clients cannot pin tools: they see whatever the server lists now.
- Know how each client picks up changes. Copilot Studio reflects tool changes from the server dynamically (Microsoft Learn, extend your agent with MCP). ChatGPT custom servers need a manual Refresh in Plugins, then a new conversation (OpenAI developer documentation).
- Keep an evaluation set. Run the same prompts against every release and compare which tool was chosen and with what arguments.
Keep the changelog where users and reviewers can read it. An illustrative example for the same fictitious server:
## finance-tools-mcp 2.0.0 (2026-11-03)
Owner: @finance-platform | Rollback: redeploy 1.4.2
### Breaking
- `create_invoice` deprecated; use `create_invoice_v2` (adds required `cost_center`).
Removal date: 2027-01-31.
### Added
- `list_overdue_invoices` (scope: invoices:read)
### Changed
- `get_invoice` description now says it returns only invoices the caller may see.
What should you log for each tool call?
Log one structured line per tool call: the user ID from the token, the client (Claude, ChatGPT or Copilot Studio), the tool name, the server version, the duration and the status. Never log the token itself. Without the user ID, an auditor’s question goes unanswered; without the version, an incident cannot be tied to a release.
Who owns the server after the pilot?
Every server needs a named owning team, an on-call contact and a deprecation policy in its README. Without one, servers pile up after the pilot and it becomes hard to say which ones are still in use.
If you use a role layer for this, check that it versions both the tools and the instructions around them. In skilder, roles and skills move from draft to published. Other users’ assistants keep the last published version until the owner or an admin publishes again, and an earlier version can be restored (skilder documentation, publish and version). Every tool call leaves an execution trace attributed to the user who made it, and the audit log is exportable (skilder documentation, activity).
What should you check before announcing the server?
Walk through this list on the production URL with a non-admin test account before the announcement. Each line maps to one of the four steps above.
- The server runs on Streamable HTTP at one HTTPS path, with TLS 1.2 or higher.
- The
Originheader is validated, and the application is bound to localhost or a private network behind the proxy. - Protected resource metadata is published, and 401 responses carry
WWW-Authenticate. - Tokens are validated for audience, with no token passthrough to downstream APIs.
- No shared service account touches user data; per-user OAuth uses scopes mapped to real permissions.
- An OAuth client is registered for each assistant platform you support.
- The connector is added at admin level in Claude, ChatGPT or Copilot Studio, or through one gateway or agent-role URL.
- A non-technical colleague has tested the flow on a fresh account.
- Every deploy carries a semver tag, and the previous tag is kept for rollback.
- The changelog lists deprecation dates for renamed or removed tools.
- One structured log line is written per tool call, with user, client, tool and version.
- The README names an owner and an on-call contact.
Takeaway: the transport change is the smallest part of the work; per-user identity, one registration per platform and versioned tools are what make an MCP server usable by the whole company.
To map these four steps onto your own servers and assistants, book a free 30-minute exchange with an expert.
Frequently asked questions
How do I publish an MCP server so everyone in my company can use it from Claude and ChatGPT?
Host it as a Streamable HTTP endpoint on HTTPS with per-user OAuth, then register it at admin level on each platform. On Claude Team or Enterprise, an Owner adds it under Organization settings, Connectors. On ChatGPT Business or Enterprise, an admin installs it as a workspace plugin. Employees then only click Connect and sign in with their own account, so nobody pastes a URL or handles a token.
Can I keep my stdio MCP server and still share it with colleagues?
Not with web assistants. Claude.ai, ChatGPT and Copilot Studio connect to remote servers only, because they run in their vendors' clouds and cannot launch a process on your laptop. You can keep stdio for local developer use and add a Streamable HTTP entry point to the same code, so both modes share one set of tools and one release process.
What is the easiest way to onboard non-technical users to an MCP server?
Register the connector at admin level so it already appears in their assistant, with sign-in through the company's single sign-on. Users should never pick a transport, paste a URL or copy a key. Before announcing it, test the full flow yourself on a fresh, non-admin account, because admin accounts often hide permission errors that ordinary users will hit on their first tool call.
Should a company MCP server use one service account for everyone?
No. A shared service account gives every user the same access, hides who did what in the logs, and turns one leaked secret into a company-wide exposure. Use per-user OAuth so each tool call runs with the requester's own permissions. Keep shared credentials only for public, non-personal data where the identity of the caller genuinely does not matter.
How do I roll back a broken MCP tool?
Redeploy the previous tagged image of the server, then refresh tool metadata in the clients that cache it, such as ChatGPT custom servers, which need a manual refresh and a new conversation. Avoid renaming tools in place: ship a new versioned tool next to the old one, so a rollback never breaks saved prompts, published agents or other teams' workflows.
Do I need an MCP gateway if I already have admin connectors?
Not for one or two servers on one platform, where native admin connectors are simpler. A gateway starts to pay off with many servers, several assistant platforms, role-based exposure or a central audit log. A layer of agent roles pays off when business teams need the server packaged with the skills and interfaces that make it usable, rather than a raw list of tools.
Can ChatGPT or Claude reach an MCP server on a private network?
Only with extra setup, because both connect from their vendors' clouds rather than from the user's machine. For Claude, a private server must allow Anthropic's published IP ranges. For ChatGPT, the server needs a public HTTPS endpoint or OpenAI's Secure MCP Tunnel. Copilot Studio also expects a reachable Streamable HTTP endpoint. Check each vendor's current documentation before opening a firewall rule.
Related articles
-
November 19, 2026
Best enterprise MCP registries and gateways (2026)
Ten enterprise MCP gateways and registries reviewed on per-user OAuth, access control, audit logs, versioning and EU hosting, plus when an LLM gateway is enough and when you need both.
-
November 11, 2026
MCP gateway vs skills platform vs Copilot Studio: which one to start with
An MCP gateway governs tool access, Copilot Studio builds Microsoft 365 agents, and what buyers call a skills platform is really agent roles. What each one does, and which one to start with.
-
September 28, 2026
What is an MCP server? The MCP protocol explained simply
An MCP server exposes tools, data and prompts to an AI agent through the Model Context Protocol. Definition, how the MCP protocol works, examples and the governance questions to settle in the enterprise.