SDKs and platforms

What is the Offline Protocol MCP server?

The Offline Protocol MCP server is a Model Context Protocol server that gives coding agents the current Offline Protocol package registry, integration guidance, architecture planning and, when it runs locally, project scaffolding. It runs on your machine through the offline CLI with no account, or as a hosted service at mcp.offlineprotocol.com. The agent uses it to write the integration, and your app runs the mesh on your devices.

TL;DR

The Offline Protocol MCP server lets a coding agent look up packages, read integration guides, plan an app and preview scaffolds. The local server, started with npx and no account, adds three tools that write project files. The hosted endpoints serve the lookup and planning tools with nothing to install.

Learning objectives

After reading this article you will be able to:

  • Describe what the Offline Protocol MCP server gives a coding agent
  • Choose between the local server, the keyed hosted endpoint and the public read-only endpoint
  • List the server's tools and the limits of each mode

Offline Protocol MCP server overview

The Offline Protocol MCP server is the way a coding agent gets accurate, current information about Offline Protocol instead of relying on what its model remembers. MCP, the Model Context Protocol, is an open protocol that lets AI applications call tools a server exposes. This server exposes the Offline Protocol package registry, integration guides (called skills), workflows, starter templates, an architecture planner and, in local mode, scaffolding.

With it connected, an agent can find packages that fit your platform, read the guidance for the workflow you chose, plan an implementation and generate project files. It works on your code. The mesh itself runs in your app through the SDK you choose.

Local, hosted and public MCP modes

The server comes in three modes, documented on the CLI and MCP page:

ModeWhere it runsNeedsToolsWrites files
LocalYour machine, over standard input and outputNode.js 18 or later; no login or key18Yes, three tools
Hostedhttps://mcp.offlineprotocol.com/mcpApp API key as a bearer token and the matching App ID in x-app-id15 read-onlyNo
Public read-onlyhttps://mcp.offlineprotocol.com/public/mcpNothing; no account, key or headers15 read-onlyNo

The local server is part of the offline CLI. Your MCP client starts it with one command; the first launch downloads the release from npm and later launches use the npm cache.

npx -y @offline-protocol/cli@0.2.9 mcp serve

With the CLI installed globally, offline mcp serve starts the same server. The hosted endpoint rejects organization keys, and limits requests to 60 a minute per key and 600 a minute per network address. The public endpoint uses streamable HTTP and allows 120 requests a minute per network address. A limited request gets 429 with Retry-After in both cases.

Offline Protocol MCP tools

The hosted and public endpoints offer 15 read-only tools for package, workflow, guide and template lookup, package resolution, architecture planning and scaffold preview:

  • list_packages, get_package, search_packages, resolve_packages
  • search_capabilities, search_examples
  • list_workflows, get_workflow, search_workflows
  • list_skills, get_skill, search_skills
  • get_template, generate_architecture, preview_scaffold

The local server provides 18 tools covering packages, capabilities, workflows, examples, skills, templates, planning and scaffolding. Three of them write local project files and exist only in local mode: scaffold_project, integrate_packages and init_project. Run offline mcp tools to see the exact list your installed version serves. Each CLI release resolves the SDK release that was current when it shipped, and CLI 0.2.9 resolves SDK 0.31.0.

MCP server scope and permissions

The MCP server works on your code, and your app works on your devices. The agent plans and writes the integration with the server’s tools; the built app runs the mesh, so you confirm radio delivery by compiling the changed app and testing it on the target devices.

Scaffolding, installing packages and editing a project run through the local server, while the hosted endpoints serve lookup and planning. Local tools write files and run package-manager commands such as npm install with your permissions, subject to your client’s approval settings, and they are not sandboxed, so keep approval prompts on. The local server and the CLI send no usage analytics or crash reports. Hosted MCP receives the tool arguments your agent sends and keeps rate-limit counters, keyed by a hash of the credential or by network address, in memory for about 90 seconds.

A separate docs MCP server at https://www.offlineprotocol.com/docs/mcp only searches and reads the documentation. It is useful alongside this server and does not replace it.

One-click installs for AI coding tools

Four AI coding tools have a one-click install from the “Start building” section of the Offline Protocol homepage. Each has its own article with the manual setup as well:

Claude Code adds the local server with claude mcp add, and other MCP clients such as Gemini CLI and Windsurf take the same local server entry in their MCP configuration file. offline mcp install <client> prints configuration for claude-code, claude-desktop, codex, cursor and vscode without editing your files.

Agent context for an Offline Protocol integration

The MCP server works best with a concrete brief. The docs recommend starting the agent from the live agent setup prompt, then giving it your repository, target device models and OS, installed SDK version, intended workflow, available transports and storage or backend requirements, along with what success looks like and which device tests it must run.

A first request can be as specific as adding an encrypted local handoff to a React Native app, with the device requirements explained and the receiving app persisting the handoff. The docs’ Build with an AI agent page lists reading paths for sending between two phones, sharing a checklist, delivering readings to a backend and calling a nearby service.

Offline Protocol MCP compared with other mesh SDK servers

Offline Protocol’s server is an integration and scaffolding server: it helps an agent write code against the SDK. Other vendors publish servers for different jobs, such as searching documentation or driving radio hardware. Which mesh networking SDKs have an MCP server? compares them and lists the questions to ask before you rely on any vendor’s server.

Frequently asked questions

Does the Offline Protocol MCP server need an API key?

Not for the local server or the public read-only endpoint. The keyed hosted endpoint at mcp.offlineprotocol.com/mcp needs an app API key as a bearer token and the matching App ID in an x-app-id header.

How do I test messages between my phones after the agent writes the code?

Build the changed app and run it on the target devices. Your app's mesh carries the messages between phones, and the MCP server's job is planning and writing that integration.

Why can't I use the keyed hosted endpoint in Claude Desktop?

Claude Desktop and Claude.ai cannot send the Authorization and x-app-id headers it requires. Use the public read-only endpoint as a connector there, or the local server when the agent needs to scaffold or edit a project.

Is the Offline Protocol docs MCP server the same thing?

No. The docs MCP server at www.offlineprotocol.com/docs/mcp only searches and reads the documentation pages. The Offline Protocol MCP server serves the package registry, guidance, planning and scaffolding.

Can I configure local and hosted mode in one client?

The docs ask for one mode per client under the offline-protocol server name, not both side by side.

Sources

Build it with Offline Protocol

The CLI and MCP page documents the local server, the keyed hosted endpoint and the public read-only endpoint, with every tool and the setup for each client.

Read the CLI and MCP docs