- Developer home
- MCP for AI apps
- Self-host a remote MCP server
Self-host a remote MCP server
Run your own copy of MR Office's MCP server on a public HTTPS address, with MR Office OAuth sign-in for every caller.
Serve over HTTP
MR Office runs the hosted server at https://mcp.mroffice.ai/mcp, which most people should use. To run your own, for a team or a private network:
MROFFICE_MCP_LISTEN_HOST=0.0.0.0 \
MROFFICE_MCP_PUBLIC_URL=https://mcp.example.com \
MROFFICE_MCP_DATA_DIR=/var/lib/mroffice-mcp \
MROFFICE_MCP_AUTH=oauth \
npx -y mroffice-mcp --http # the MCP endpoint is https://mcp.example.com/mcpPut it behind an HTTPS proxy. With MROFFICE_MCP_AUTH=oauth the server takes only callers signed in to MR Office: it publishes its OAuth protected-resource metadata, each caller's app signs them in (dynamic registration or a client ID metadata document, with PKCE), and it converts as that person.
Without MROFFICE_MCP_AUTH=oauth the server has no sign-in of its own: anyone who can reach the address can use it. Keep it private (a VPN, an access-controlled proxy) unless you mean to share it.
Revocation
Each request's token is checked with MR Office (GET /api/v1/oauth/token-info, each answer kept 5 seconds), so an app the person disconnects in their settings is refused within 5 seconds.