SDKs and platforms

How do I add Offline Protocol to Claude?

In claude.ai or the Claude desktop app, open the Offline Protocol listing in Claude's directory and connect it. That adds the public read-only MCP endpoint, which needs no account or key. In Claude Code, run claude mcp add to start the local MCP server from the Offline Protocol CLI, which also scaffolds project files. With either one, Claude can plan your app's architecture, pick compatible packages and follow the integration guide for your workflow.

TL;DR

Add the Offline Protocol connector from Claude's directory to give claude.ai and Claude Desktop the 15 read-only planning and lookup tools, with no account. In Claude Code, add the local MCP server with one command to get 18 tools, including three that scaffold and configure your project. From there you compile the app and run it on your devices.

Learning objectives

After reading this article you will be able to:

  • Connect Offline Protocol to claude.ai, Claude Desktop or Claude Code
  • Tell the read-only directory connector apart from the local server that scaffolds projects
  • Know what Claude can build with the tools and the next steps on your devices

Offline Protocol setup in Claude

Connect Offline Protocol to Claude and Claude can plan your app’s architecture, pick compatible packages, read the integration guide for your workflow and, with the local server, scaffold a starter app. Which route you take depends on where you use Claude. The Offline Protocol MCP server comes in three forms, and two of them matter here:

  • The directory connector, for claude.ai and the Claude desktop app. It connects the public read-only endpoint, https://mcp.offlineprotocol.com/public/mcp, with no account, key or headers.
  • The local MCP server, for Claude Code, and for Claude Desktop when you want files written. It runs on your machine from the published Offline Protocol CLI over standard input and output, and needs Node.js 18 or later but no login.

The third form, the keyed hosted endpoint at https://mcp.offlineprotocol.com/mcp, takes an app API key and its App ID in request headers. For claude.ai and Claude Desktop, the docs point to the public endpoint, which needs no headers.

Configure one mode per client under the offline-protocol name, not two side by side.

Claude directory connector for claude.ai and Claude Desktop

The Claude directory route takes one click. Open the Offline Protocol listing in Claude’s directory and connect it. Claude’s documentation describes the button as Connect to Claude, and says a connector that doesn’t use sign-in connects as soon as you select it, with no page to visit. The Offline Protocol endpoint has no sign-in.

After that, the connector works in your conversations on the web, desktop and mobile. Claude’s docs describe three things to know:

  • It is switched per chat. Select + in the message box, then Connectors, and check that its toggle is on.
  • Claude may ask before each tool call. Choose Allow once, or Always allow to skip the prompt for that tool.
  • You manage it in one place. Tool permissions, disconnecting and removing all live on the connector’s page under Customize > Connectors.

If you would rather not use the directory, add https://mcp.offlineprotocol.com/public/mcp as a custom connector by its URL. No sign-in is needed.

For Claude Desktop with the file-writing tools, use local mode instead: choose Settings, Developer, Edit Config and add this to claude_desktop_config.json:

{
  "mcpServers": {
    "offline-protocol": {
      "command": "npx",
      "args": [
        "-y",
        "@offline-protocol/cli@0.2.9",
        "mcp",
        "serve"
      ]
    }
  }
}

Claude Code local MCP server

Claude Code takes the local server with one command, run once:

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

The first launch downloads that CLI release from npm and later launches use the npm cache. Claude Code’s documentation says claude mcp add writes to local scope by default, so the server loads only in the project where you added it. claude mcp list shows whether it connected, and /mcp shows it inside a session.

To share the setup with your team, commit this as .mcp.json in your project instead:

{
  "mcpServers": {
    "offline-protocol": {
      "command": "npx",
      "args": [
        "-y",
        "@offline-protocol/cli@0.2.9",
        "mcp",
        "serve"
      ]
    }
  }
}

Claude Code asks each person to approve a project’s .mcp.json servers the first time they run claude in it, so a cloned repository cannot switch the server on by itself.

If you signed in to Claude Code with your Claude account, connectors you added on claude.ai also appear in Claude Code, so the directory connector’s read-only tools can show up next to the local server. The keyed hosted endpoint works in Claude Code too, with OFFLINE_API_KEY set in your environment:

claude mcp add --transport http offline-protocol https://mcp.offlineprotocol.com/mcp --header "Authorization: Bearer $OFFLINE_API_KEY" --header "x-app-id: app_your_application_id"

That command writes the key into your client configuration, so keep it private.

Offline Protocol tools Claude can use

With either route, Claude can plan the architecture of an app, pick compatible packages and read the integration guide for a workflow. The local server adds scaffolding a starter app on disk.

Directory connectorLocal MCP server
Where it worksclaude.ai, Claude DesktopClaude Code, Claude Desktop config
Account or keyNoneNone
Tools15 for lookup, planning and scaffold preview18
Scaffolds project filesPreviews the scaffoldYes: scaffold_project, integrate_packages, init_project

The 15 read-only tools cover package, workflow, guide and template lookup, package resolution, architecture planning and scaffold preview. Among them are generate_architecture for a plan, resolve_packages to choose compatible packages, get_skill to read an integration guide and preview_scaffold to show what a scaffold would contain without writing it.

Three ready workflows scaffold a React Native app: local-handoff, backend-delivery and nearby-service. If you are building something like a chat app, How to build an app like Bitchat gives the background to brief Claude with.

A first Offline Protocol request in Claude

A concrete request with your platform and devices gets a better answer 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.

Tell Claude your repository, target device models and OS, installed SDK version and intended workflow. The docs keep a live agent setup prompt as the canonical setup instruction; give Claude its URL rather than a copied version.

Next steps after Claude builds the integration

Once Claude has planned and scaffolded the integration, the next steps happen on your machine and your devices:

  • Compile and test on the target devices. The docs ask for a device test because radio delivery is confirmed on hardware, not by a typecheck or mock.
  • Review what the local tools write. They write files and run package-manager commands with your permissions, so keep Claude’s approval prompts on.
  • Keep keys out of committed files. The local and public modes need none; a hosted key belongs in your environment.

The same server works in other tools: see Cursor, VS Code, and ChatGPT and Codex. For a comparison with other vendors’ servers, read Which mesh networking SDKs have an MCP server?

Frequently asked questions

Do I need an Offline Protocol account to use it in Claude?

No. The directory connector uses the public read-only endpoint, which needs no account, key or headers, and the local MCP server in Claude Code needs no login. Only the keyed hosted endpoint needs an app API key and its App ID.

Which Claude setup scaffolds the project files?

The local MCP server, in Claude Code or in Claude Desktop's configuration. It writes the starter project with scaffold_project, integrate_packages and init_project. The directory connector plans the app and previews the scaffold.

Will the connector I added on claude.ai show up in Claude Code?

Yes, if you sign in to Claude Code with your Claude account. Claude's documentation says connectors added in claude.ai are then available in Claude Code, where /mcp lists them.

Where does messaging between devices happen?

In your app, through the Offline Protocol mesh SDK. Claude uses the MCP server to plan and write that integration, and you run the app on your devices to see messages move.

Why does the Claude Code command pin the CLI to 0.2.9?

The docs pin the version so every launch runs the same CLI release, which gives repeatable results. The first launch downloads that release from npm, and later launches use the npm cache.

Sources

Build it with Offline Protocol

The coding agents page has the exact setup for Claude Code and Claude Desktop, in local and hosted mode, plus a first request to try.

Read use Offline Protocol from your coding agent