Model Drive Protocol MCP Server
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Model Drive Protocol MCP Serverget the current browser selection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Model Drive Protocol
en-US |
Expose runtime-local capabilities to AI agents - not just servers.
MDP is a bridge for capabilities that live inside active runtimes. Browsers, apps, local processes, IDE extensions, devices, and embedded runtimes can register structured paths with one MDP server, and MCP-compatible hosts can discover and invoke them through a stable bridge surface.
The Problem
Most agent integrations assume useful capabilities live in MCP servers.
In practice, the best context often lives somewhere else:
browser tabs with user session, DOM, page state, and extensions
IDEs with workspace files, editor selection, diagnostics, and commands
local processes with CLI tools, background services, and private state
mobile apps and device runtimes with sensors, permissions, and user context
These runtimes are not naturally MCP servers.
Without MDP, teams usually end up:
rewriting runtime logic into standalone servers
building one-off bridges for each host/runtime pair
losing the live context that made the capability valuable
The Idea
MDP makes runtime capabilities discoverable as a path catalog.
/browser
/tabs
/active
/dom
/selection
/actions/clickThat runtime can be:
Web
Android
iOS
Qt / C++
Node.js
Python / Go / Rust / Java / Kotlin / C#
native device or local agent processes
Each path can be discovered and invoked. The runtime keeps ownership of the actual capability, while the MDP server owns registration, routing, and MCP exposure.
The path model is the API. Clients register descriptors with expose(), and hosts discover or invoke them through listClients, listPaths, callPath, and callPaths.
Path-First, Skill-Aware
MDP does not flatten everything into a giant tool list. It supports endpoint paths, prompt paths, and skill paths:
endpoint paths such as
GET /searchprompt paths that end with
/prompt.mdskill paths that end with
/skill.md
Skills work well for progressive disclosure:
/workspace/review/skill.md
/workspace/review/files/skill.md
/workspace/review/files/diffAn agent can start at a high-level skill, then read deeper paths only when it needs more context.
Runtime -> MDP -> MCP
Browser / App / Device / Local Process
|
v
MDP Client
|
v
MDP Server
|
v
MCP HostAgents do not need to know where a capability lives. A browser tab, VSCode extension, local process, or device runtime can all appear through one unified bridge surface.
The core responsibilities stay separate:
clients own capabilities
the MDP server owns registration and routing
MCP hosts talk to one fixed bridge surface
Why Not Just an MCP Server?
Because not every useful runtime should become a server.
Scenario | Plain MCP server | MDP |
Browser tab state | Hard to expose without custom glue | Native runtime client |
Mobile or device APIs | Often unrealistic as a server | Expose in place |
Local app runtime | Heavyweight for simple local context | Direct runtime bridge |
Multi-agent shared context | Fragmented across hosts | One shared registry surface |
Quick Example
Expose a browser selection path from a runtime client:
client.expose({
path: '/browser/selection',
description: 'Read the current browser selection.',
handler: async () => ({ text: window.getSelection()?.toString() ?? '' })
})The MCP host sees /browser/selection through the MDP bridge. The call still executes inside the live browser runtime.
What You Can Build
AI coding agents with real IDE context
browser-native agents without scraping workarounds
mobile-aware and device-aware assistants
local automation that keeps private runtime state local
multi-agent systems sharing one runtime capability registry
cross-device capability federation
Current Status
protocol models for path descriptors, messages, errors, and guards
TypeScript MDP server with MCP bridge tools
JavaScript client SDK with browser bundle output
ws/wssandhttp/httpsloop transportsauth envelopes and transport-carried auth support
GET /mdp/metaprobing and optional upstream discoveryoptional node-local filesystem state snapshots under
./.mdp/storewhen enabledChrome extension, VSCode extension, and browser simple client integrations
primary-secondary server topology for layered local deployments
MDP is language-agnostic, but this repository currently ships the TypeScript/JavaScript reference implementation.
One Sentence
MDP is the missing layer between runtime-local capabilities and AI agents.
Architecture
At a high level, one user can work through different agent UIs such as Claude Code, Codex, or Cursor. Each UI talks to its own mdp server, those servers form a primary-secondary triangle, and all mdp clients connect only to the primary:
flowchart LR
user["User"]
subgraph agents["Agent UI"]
claude["Claude Code"]
codex["Codex"]
cursor["Cursor"]
end
subgraph servers["MDP Server Federation"]
primary["Primary MDP Server"]
secondaryB["Secondary MDP Server B"]
secondaryC["Secondary MDP Server C"]
end
clients["MDP Clients"]
endpoints["Endpoints"]
skills["Skills"]
prompts["Prompts"]
user --> claude
user --> codex
user --> cursor
claude <-->|"local host link"| secondaryB
codex <-->|"local host link"| primary
cursor <-->|"local host link"| secondaryC
primary <-->|"federation"| secondaryB
primary <-->|"federation"| secondaryC
secondaryB <-->|"federation"| secondaryC
primary <-->|"client sessions"| clients
clients --> endpoints
clients --> skills
clients --> promptsOne invocation can go directly to the primary server, or pass through a secondary server when one is present:
sequenceDiagram
participant User
participant Agent as AgentUI
participant Secondary as Secondary Server
participant Primary as Primary Server
participant Client as MDP Client
participant Runtime as Local Runtime
User->>Agent: ask for an action
opt AgentUI is attached to a secondary server
Agent->>Secondary: call local mdp server
Secondary->>Primary: federated request
end
opt AgentUI is attached directly to the primary server
Agent->>Primary: call local mdp server
end
Primary->>Client: route MDP call
Client->>Runtime: execute local logic
Runtime-->>Client: result
Client-->>Primary: callClientResult
opt Result returns through a secondary server
Primary-->>Secondary: federated result
Secondary-->>Agent: tool result
end
opt Result returns directly to the primary-side AgentUI
Primary-->>Agent: tool result
end
Agent-->>User: answerConnection setup follows the same structure:
each user connects to one AgentUI
each AgentUI connects to its own colocated MDP server
one MDP server becomes or is configured as the primary
all runtime-local MDP clients open transports only to that primary server
the primary forwards registry updates and routed messages to connected secondary servers
if the primary server becomes unavailable, one secondary server should promote itself to the new primary and take over client-facing routing
Pick A Path
Use Quick Start if you want the shortest path from zero to a working client plus MCP bridge.
Use Server Tools and Server APIs if you already understand the model and need exact data formats.
Use JavaScript SDK Quick Start if you want to embed MDP into a browser page, local process, or custom runtime.
Use Go SDK, Python SDK, Rust SDK, JVM SDKs, or .NET SDK if you want a first-party runtime client outside JavaScript.
Use Chrome Extension or VSCode Extension if you want a packaged runtime integration instead of wiring the SDK yourself.
What Is In This Repo
packages/protocol: protocol models, message types, guards, and errorspackages/server: MDP server runtime, transport server, and fixed MCP bridgepackages/client: JavaScript client SDK and browser bundlesdks/python: Python client SDKsdks/go: Go client SDKsdks/rust: Rust client SDKsdks/jvm: Java and Kotlin client SDKssdks/dotnet: C# client SDKapps/chrome-extension: packaged Chrome runtime integrationapps/vscode-extension: packaged VSCode runtime integrationdocs: VitePress documentation site and Playground
Documentation
Use the docs for getting started, exact tool and API formats, and packaged integration guidance:
Contributing
For contributor workflow, release automation, maintainer setup, and CI internals, see CONTRIBUTING.md and docs/contributing.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/modeldriveprotocol/modeldriveprotocol'
If you have feedback or need assistance with the MCP directory API, please join our Discord server