osmcp MCP Server
A typed, policy-controlled OS capability layer for AI agents.
osmcp scores 53 (Fair), licensed MIT and written in Go. It installs as a local process. It does not declare tools yet. Filed under File systems. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
53 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 53 comes from
22 + 10 + 0 + 10 + 4 + 7 = 53. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "krushnavardhanreddy-osmcp": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/krushnavardhanreddy/osmcp:latest" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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
| 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 |
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} responses
Demo
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 osmcp
Alternatively, build from source:
make build
# Binary: bin/osmcp
2. 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.toml
The binary communicates over stdio using MCP JSON-RPC. Connect any MCP-compatible client.
Client Integrations
Claude Desktop
Add the following to your claude_desktop_config.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 osmcp
LiteLLM
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-lint
Policy Security Model
allowed_rootโ All filesystem paths are validated to be inside this root. Traversal outside is blocked withPOLICY_DENIED.allowed_toolsโ Only tools in this list are visible to the MCP client. Unlisted tools do not appear intools/list.allow_mutationโ Whenfalse, 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:
{
"ok": true,
"tool": "grep",
"data": { ... },
"error": null,
"meta": {
"execution_time_ms": 12,
"truncated": false
}
}
License
MIT
Acknowledgements
osmcp would not be possible without the incredible open-source libraries it is built upon:
Frequently asked questions
What is osmcp MCP Server?
A typed, policy-controlled OS capability layer for AI agents.
How do I install osmcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. osmcp MCP Server runs locally from the Docker image ghcr.io/krushnavardhanreddy/osmcp:latest with the command docker run -i --rm ghcr.io/krushnavardhanreddy/osmcp:latest.
Is osmcp MCP Server free and open source?
Yes. osmcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does osmcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for osmcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is osmcp MCP Server's trust score calculated?
osmcp MCP Server scores 53 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.