Osmcp MCP server
io.github.KrushnaVardhanReddy/osmcp·v1.0.5A typed, policy-controlled OS capability layer for AI agents.
0 stars
Reviews
Write oneNobody has reviewed Osmcp yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Osmcp tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-11-03 · same rubric, same numbers if you re-run it
- –Code scanpackage could not be scannedn/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 80 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Osmcp compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 80/100
- higher than 60% of 48,255 servers
Install Osmcp in Claude Code, Cursor or VS Code
claude mcp add osmcp -- docker run -i --rm ghcr.io/krushnavardhanreddy/osmcp:latest
What the publisher says
From the Osmcp repository's README, as published. We do not edit it. Read it on GitHub
osmcp — OS Capabilities for AI Agents
A typed, policy-controlled OS capability layer for AI agents via the Model Context Protocol (MCP).
osmcp exposes a curated set of safe filesystem, git, and text-processing tools to AI agents — all governed by a strict Policy Engine that enforces path boundaries, tool allowlists, output limits, mutation controls, and an immutable audit trail.
📖 Read the comprehensive Architecture & Design Document for a deep dive into the philosophy, safety boundaries, and design decisions behind osmcp.
Features
Architecture
AI Agent (Claude, GPT, etc.)
│ MCP JSON-RPC (stdio)
▼
osmcp binary
├── Policy Engine ← enforces allowed_root, allowed_tools, limits
├── Audit Logger ← append-only NDJSON log of every invocation
├── Tool Registry ← self-registering tools via RegisterMCP()
└── Envelope Builder ← typed {ok, data, error, meta} responsesDemo
A demonstration of Claude Desktop securely editing code via osmcp, safely bounded by a TOML policy engine.
Quick Start
1. Install via Homebrew
brew tap KrushnaVardhanReddy/tap
brew install osmcpAlternatively, build from source:
make build
# Binary: bin/osmcp2. Configure a Policy
# policy.toml
[policy]
allowed_root = "/home/user/myproject"
allowed_tools = ["grep", "ls", "cat", "git_status", "git_log"]
allow_mutation = false
[limits]
timeout_ms = 5000
max_output_bytes = 1048576
max_matches = 100
[audit]
destination = "stderr" # or "file"
path = "/var/log/osmcp-audit.ndjson"3. Run
bin/osmcp --policy policy.tomlThe binary communicates over stdio using MCP JSON-RPC. Connect any MCP-compatible client.
Client Integrations
Claude Desktop
Add the following to your claudedesktopconfig.json:
{
"mcpServers": {
"osmcp": {
"command": "osmcp",
"args": ["--policy", "/absolute/path/to/policy.toml"]
}
}
}Smithery (npx)
To install osmcp for Claude Desktop automatically via Smithery:
npx @smithery/cli install osmcpLiteLLM
Integrate osmcp into your enterprise LLM proxy using the LiteLLM MCP Gateway.
5. Test
make test # unit tests
make e2e # end-to-end tests against real binary
make lint # golangci-lintPolicy Security Model
- allowedroot — All filesystem paths are validated to be inside this root. Traversal outside is blocked with POLICYDENIED.
- allowedtools** — Only tools in this list are visible to the MCP client. Unlisted tools do not appear in tools/list.
- allowmutation** — When false, mutating tools (write, delete, git commit) are globally blocked.
- Limits — Per-invocation timeout, output byte cap, and match count cap prevent runaway operations.
Envelope Response Format
All tool responses follow a consistent typed envelope:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Osmcp: common questions
- Is Osmcp MCP server safe?
- Mostly: it is graded B (80/100). Read the Osmcp safety report
- How do I install Osmcp?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Osmcp need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Osmcp maintained?
- The last commit was 80 days ago (2026-08-16). The latest release is v1.0.5.