A typed, policy-controlled OS capability layer for AI agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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 |
A demonstration of Claude Desktop securely editing code via osmcp, safely bounded by a TOML policy engine.
Alternatively, build from source:
The binary communicates over stdio using MCP JSON-RPC. Connect any MCP-compatible client.
Add the following to your claude_desktop_config.json:
To install osmcp for Claude Desktop automatically via Smithery:
Integrate osmcp into your enterprise LLM proxy using the LiteLLM MCP Gateway.
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:
MIT
osmcp would not be possible without the incredible open-source libraries it is built upon:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/osmcp)<a href="https://allmcps.com/mcp/osmcp"><img src="https://allmcps.com/api/badge/osmcp?style=directory" alt="Osmcp on AllMCPs" /></a>