Turn your local computer into a remotely accessible MCP endpoint for cloud AI agents.
DeskLink is a thin authenticated bridge. It starts the local STDIO MCP servers you already use (or the official filesystem server), discovers their tools, and exposes everything through a single Streamable HTTP MCP URL. Optionally tunnels that URL with ngrok so Claude, ChatGPT, Cursor, Manus, or any remote MCP client can reach your machine securely.
Package name on PyPI: desklink CLI commands: desklink and devlink (alias)
You keep full control: tools stay on your machine, approvals can prompt you, and tokens never leave your machine unless you choose.
pip install desklink # Optional but recommended for public tunnels export NGROK_AUTHTOKEN=your_ngrok_token desklink start On first run DeskLink will:
Copy the public URL + token into any MCP-compatible client.
desklink start \ --mcp-config ./mcp.json \ --config ./desklink.config.json \ --dir ~/Documents --dir ~/projects \ --port 8765 \ --tunnel ngrok # or "none" for local-only --token my-static-token # optional override -v # verbose logging Configuration DeskLink looks for two files (first match wins):
{ "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/Documents", "/Users/you/projects"] }, "my-custom-server": { "command": "python", "args": ["-m", "my_mcp_server"], "env": { "API_KEY": "..." } } } } Any STDIO MCP server works. Tools appear as filesystem__read_file, my-custom-server__do_something, etc.
{ "logging": { "level": "info" }, "tracing": { "enabled": true, "level": "basic", "redact_sensitive": true }, "auth": { "enabled": true }, "approvals": { "default": "auto", "tools": { "filesystem__write_file": "prompt", "filesystem__create_directory": "prompt" } }, "server": { "host": "127.0.0.1", "port": 8765, "mcp_path": "/mcp" }, "tunnel": { "provider": "ngrok" } } Approvals
Environment variables use the prefix DESKLINK_ (e.g. DESKLINK_SERVER__PORT=9000). NGROK_AUTHTOKEN is also picked up automatically.
Authorization: Bearer Use this for simple scripts or clients that just need a static secret.
DeskLink acts as a full OAuth 2.1 authorization server so agents never see your device token.
desklink create oauth-app claude desklink create oauth-app chatgpt desklink create oauth-app manus desklink create oauth-app cursor desklink create oauth-app custom --name "My Agent" --public Presets come with sensible default scopes. Confidential clients get a Client Secret; public clients rely on PKCE.
When using a tunnel the same paths work on the public URL.
desklink oauth list desklink oauth revoke Or open /dashboard in a browser – create apps, view Client IDs, revoke access, and see recent activity.
All OAuth state lives as JSON under ~/.desklink/oauth/ (no database).
git clone https://github.com/sam-14uel/desklink-py.git cd desklink-py pip install -e ".[dev]" pytest License MIT © Samuel Obinna Chimdi
ai-agents desklink mcp mcp-bridge model-context-protocol ngrok oauth tunnel
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




