LocalCan bridges local MCP servers to Claude
This guide outlines how to expose a local TypeScript MCP server to hosted Claude.ai applications using a stateless Streamable HTTP setup with Hono. By establishing a secure development tunnel via LocalCan, developers can route cloud requests to their localhost environment for real-time testing.
While stdio transports are excellent for fast, single-developer iteration with Claude Desktop, testing inside Claude.ai on mobile networks requires bridging the public cloud barrier. Rather than wasting time setting up temporary, unstable tunnels that break OAuth callback URIs on every restart, developers should opt for dedicated development-tunneling tools like LocalCan which offer persistent domains, valid certificates, and robust network debugging controls.
* Streamable HTTP (revision 2025-11-25) is now the required transport for remote client connections, rendering the older HTTP+SSE transport deprecated and slated for removal.
* State leakage is a critical security risk; developers must instantiate a new McpServer instance per request (using a factory function) rather than using a global module-scope singleton.
* Stable, persistent subdomains are an absolute requirement when configuring OAuth 2.1 to prevent constant re-registration of redirect URIs.
* Local inspectors and automated cURL sanity checks should always be used to verify remote connection stability before registering the custom connector in Claude.ai.
DISCOVERED
1h ago
2026-06-02
PUBLISHED
2h ago
2026-06-02
RELEVANCE
AUTHOR
LocalCanApp