One-click Cursor install for Offline Protocol
The one-click route is the Cursor link in the Start building section of the Offline Protocol homepage. It adds the local MCP server under the name offline-protocol, started with the same command the homepage shows:
npx -y @offline-protocol/cli mcp serve
Cursor’s documentation describes how such links work: the link carries a server name and a base64-encoded JSON configuration in the same format as mcp.json. You click the link, Cursor prompts you to install the server, and you can then use it in Cursor. The Offline Protocol link follows that format, with name=offline-protocol and that command as the configuration.
The server it adds runs on your machine and talks to Cursor over standard input and output. It needs Node.js 18 or later, and no login or API key. The first launch downloads the CLI from npm, and later launches use the npm cache.
The homepage link leaves the CLI version unpinned, so npx runs whichever release is current. The docs configuration below pins @offline-protocol/cli@0.2.9, which gives the same tools on every launch. Pick the pinned entry when you want repeatable results across a team.
The same local server is the one behind the Claude Code, VS Code and Codex setups.
Manual Cursor MCP configuration
Manual setup is one JSON entry. Add this to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json to use it in every project:
{
"mcpServers": {
"offline-protocol": {
"command": "npx",
"args": [
"-y",
"@offline-protocol/cli@0.2.9",
"mcp",
"serve"
]
}
}
}
The docs say to restart the client after changing its configuration, then check that offline-protocol is connected. Cursor’s documentation says you enable or disable MCP servers from Customize in the sidebar.
A project file can be committed so everyone on the team gets the server. It holds no secret, because local mode needs no key.
If you have installed the CLI globally with npm install -g @offline-protocol/cli, offline mcp install cursor prints a Cursor configuration for you. It prints only; it does not edit your files. In CLI 0.2.9 that output starts the server with offline mcp serve, which needs the offline command on the PATH that Cursor uses. The docs configurations use the pinned npx command instead, which needs no installation.
Hosted Offline Protocol MCP in Cursor
Cursor can also use the hosted endpoint, which runs without a local install and offers the read-only tools; scaffolding runs in local mode. It takes an app API key, created in the application’s API keys tab of the developer portal, and the matching App ID. Organization keys are rejected. With the key in the environment used to start Cursor:
{
"mcpServers": {
"offline-protocol": {
"url": "https://mcp.offlineprotocol.com/mcp",
"headers": {
"Authorization": "Bearer ${env:OFFLINE_API_KEY}",
"x-app-id": "app_your_application_id"
}
}
}
}
Hosted mode offers the 15 read-only tools and allows 60 requests per minute per key. Choose one mode under the offline-protocol name, not both.
Offline Protocol tools in Cursor’s agent
Once connected, Cursor’s agent can plan the architecture of an app, pick compatible packages, read integration guides and scaffold a starter project. Cursor’s documentation says the agent uses MCP tools when relevant, including in Plan Mode, and that you can also ask for a tool by name.
The local server provides 18 tools for packages, capabilities, workflows, examples, skills, templates, planning and scaffolding:
| Task | Example tools |
|---|---|
| Plan an app | generate_architecture, search_workflows, get_workflow |
| Choose packages | search_packages, resolve_packages, get_package |
| Read integration guidance | search_skills, get_skill, search_examples |
| Preview a project | get_template, preview_scaffold |
| Scaffold a project (local mode) | scaffold_project, integrate_packages, init_project |
The three writing tools create files and run package-manager commands such as npm install with your permissions. Cursor asks for approval before using MCP tools by default, and you can open a call to see its arguments; keep that on for these three.
The ready workflows local-handoff, backend-delivery and nearby-service scaffold a React Native app. For the SDK that scaffold installs, see How do I add mesh messaging to a React Native app?
A first Offline Protocol prompt in Cursor
Cursor’s agent does better with a concrete brief than a general one. The Offline Protocol docs suggest a first request like this:
Add an encrypted local handoff to this React Native app. Explain the device requirements, choose compatible packages, and show how the receiving app will persist the handoff.
Add your target device models and OS, the SDK version you have installed and the workflow you want. The docs keep a live agent setup prompt as the canonical setup instruction; point the agent at its URL instead of pasting an old copy.
Next steps after Cursor scaffolds the app
Once Cursor’s agent has planned and scaffolded the integration, the next steps happen on your machine and your devices:
- Run it on real devices. The docs ask you to compile the changed application and test on the target devices, where radio delivery is confirmed.
- Review the generated changes with the rest of your code before you commit them.
- Keep keys private. Only hosted mode needs one, and it belongs in the environment, not a committed file.
For how the local, hosted and public modes differ, read What is the Offline Protocol MCP server?