A typed, policy-controlled OS capability layer for AI agents.
MCPpedia last refreshed this data
io.github.KrushnaVardhanReddy/osmcp is an MCP server that a typed, policy-controlled OS capability layer for AI agents. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 87/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"osmcp": {
"args": [
"--policy",
"/absolute/path/to/policy.toml"
],
"command": "osmcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A typed, policy-controlled OS capability layer for AI agents via the Model Context Protocol (MCP).
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'osmcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked osmcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml
MCP client bridge: connects to MCP servers and registers their tools on ctx.tools
The official MCP server implementation for the Perplexity API Platform
Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf. Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.
Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration
MCP Security Weekly
Get CVE alerts and security updates for io.github.KrushnaVardhanReddy/osmcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
| Category | Tools | Phase |
|---|---|---|
| 🔍 Search | grep, find | 1 |
| 📁 File Inspection | ls, cat, stat, wc, head, tail | 1 |
| 🌳 Filesystem | tree, du | 1 |
| 🔀 Git Intelligence | git_status, git_diff, git_log | 1 |
| 🔧 Transform | jq, sed, diff | 1 |
| ✍️ File Mutation | write_file, append_file, mkdir, rm, mv, cp, patch | 2 |
| 🚀 Git Mutation | git_add, git_commit, git_checkout, git_branch, git_pull, git_push | 2 |
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} responses
A demonstration of Claude Desktop securely editing code via osmcp, safely bounded by a TOML policy engine.
brew tap KrushnaVardhanReddy/tap
brew install osmcp
Alternatively, build from source:
make build
# Binary: bin/osmcp
# 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"
bin/osmcp --policy policy.toml
The binary communicates over stdio using MCP JSON-RPC. Connect any MCP-compatible client.
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"osmcp": {
"command": "osmcp",
"args": ["--policy", "/absolute/path/to/policy.toml"]
}
}
}
To install osmcp for Claude Desktop automatically via Smithery:
npx @smithery/cli install osmcp
Integrate osmcp into your enterprise LLM proxy using the LiteLLM MCP Gateway.
make test # unit tests
make e2e # end-to-end tests against real binary
make lint # golangci-lint
allowed_root — All filesystem paths are validated to be inside this root. Traversal outside is blocked with POLICY_DENIED.allowed_tools — Only tools in this list are visible to the MCP client. Unlisted tools do not appear in tools/list.allow_mutation — When false, mutating tools (write, delete, git commit) are globally blocked.All tool responses follow a consistent typed envelope:
{
"ok": true,
"tool": "grep",
"data": { ... },
"error": null,
"meta": {
"execution_time_ms": 12,
... [View full README on GitHub](https://github.com/krushnavardhanreddy/osmcp#readme)