Skip to content
MCP server
Registry

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.

by krushnavardhanreddyMITGo0 stars
Trust score
53Fair
Trust score 53 of 100, Fair

Fair trust

53 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 53 comes from

22 + 10 + 0 + 10 + 4 + 7 = 53. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "krushnavardhanreddy-osmcp": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/krushnavardhanreddy/osmcp:latest"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools 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.

LiteLLM Compatible Smithery Verified

Features

CategoryToolsPhase
๐Ÿ” Searchgrep, find1
๐Ÿ“ File Inspectionls, cat, stat, wc, head, tail1
๐ŸŒณ Filesystemtree, du1
๐Ÿ”€ Git Intelligencegit_status, git_diff, git_log1
๐Ÿ”ง Transformjq, sed, diff1
โœ๏ธ File Mutationwrite_file, append_file, mkdir, rm, mv, cp, patch2
๐Ÿš€ Git Mutationgit_add, git_commit, git_checkout, git_branch, git_pull, git_push2

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

osmcp Demo Action 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 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.
  • 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:

  • mcp-go for the core Model Context Protocol SDK.
  • go-git for pure Go git manipulation.
  • gojq for pure Go JSON processing.
  • go-gitdiff for parsing and applying patches.
  • grep-go for regular expression searching.
  • toml for configuration parsing.

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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server