My Pi logo

My Pi

Local-first MCP runtime for bounded workspace access, guarded file changes, code navigation, search, and Git operations.

Install My Pi

Run the project’s own setup commands, in order.

Setup steps from the project

my-pi installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g @koonwang03/my-pi
    
  2. 2. Start the server
    my-pi-mcp --workspace /path/to/your/project
    
  3. 3. Start the server
    my-pi-mcp --workspace /path/to/your/project --security-profile trusted
    
  4. 4. Add to your MCP client
    npx --yes --package @koonwang03/my-pi my-pi-mcp host-config cursor-local
    
  5. 5. Add to your MCP client
    my-pi-mcp host-config claude-code-local
    
  6. 6. Add to your MCP client
    my-pi-mcp host-config cursor-local
    

Overview

The my-pi MCP server gives coding agents controlled access to a local workspace through bounded filesystem, AST, LSP, and Git tools. It runs over stdio and requires an explicit workspace path, with read-only behavior by default and trusted elevation for writes or LSP process startup. Reach for it when an agent needs repository-aware coding operations without unrestricted shell access. The runtime is alpha and intended for evaluation or controlled local development.

Use cases

  • Read a bounded local repository without granting shell access
  • Apply guarded file changes after checking content fingerprints
  • Search code structurally across supported programming languages
  • Navigate symbols and diagnostics through local language servers
  • Inspect Git status and filtered diffs

Key features

  • Bounded workspace filesystem access
  • Content-preconditioned writes and patches
  • Tree-Sitter AST search
  • LSP symbols, navigation, hover, and diagnostics
  • Secret-filtered Git status and diffs
  • Read-only default security profile

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 49d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How My Pi works

What the my-pi MCP server does

The my-pi MCP server exposes a local coding workspace through the Model Context Protocol. Its public surface contains 13 tools covering file access, repository exploration, structural code search, language-server queries, and Git inspection. The runtime does not choose models, spawn agents, or depend on a secondary paid LLM service.

Workspace access is bounded by an explicitly selected root. Reads are restricted by policy, and sensitive paths such as .env*, .aws/, .ssh/, and *.key are denied before their contents enter model context. The default security profile is read-only. File mutation and language-server process startup require explicit trusted elevation.

How it works

A compatible coding host communicates with the MCP edge over stdio. The runtime applies workspace and security policies before dispatching requests to local filesystem, search, AST, LSP, or Git components. It keeps source code and detailed workspace state on the host.

Writes and patches can use raw SHA-256 content preconditions. A guarded update is rejected when the file no longer matches the expected content, helping prevent stale overwrites. File replacement also preserves relevant encoding, line endings, BOM information, and POSIX executable-mode behavior. Long-running search, Git, and LSP subprocess work supports cancellation and cleanup.

Tree-Sitter structural search supports TypeScript, JavaScript, Python, Rust, and Go. LSP tools provide status, symbols, navigation, diagnostics, definitions, references, and hover information where supported host language servers are available. Git operations provide bounded status and filtered diffs, including secret filtering and large-diff spillover behavior.

Setup and configuration

The my-pi MCP server requires Node.js 24.0.0 or newer, with Node 24 LTS identified as the normative runtime. Install the published package globally and provide a workspace path:

Terminal
npm install -g @koonwang03/my-pi
my-pi-mcp --workspace /path/to/project

Use --security-profile trusted only for a workspace that has been explicitly approved. Starting without --workspace or MY_PI_WORKSPACE_ROOT fails closed. The --allow-cwd option grants the current directory and should be used only when that behavior is intentional.

Host configuration snippets can be generated for Cursor and Claude Code, including local variants, with the host-config command. The published npm package is the stable MCP server; the coordination daemon and local UI belong to experimental source-build components.

Tools and capabilities

The 13-tool surface includes:

  • fs_read, fs_write, fs_patch, and fs_stat for bounded file operations and metadata
  • search and workspace_info for repository discovery and workspace state
  • ast_search for structural code queries
  • lsp_status, lsp_symbols, lsp_navigate, and lsp_diagnostics for language-server intelligence
  • vcs_status and vcs_diff for Git state and bounded diffs

Limitations and notes

The my-pi MCP server is released as alpha software. Review its security model before enabling the trusted profile. LSP behavior depends on supported language servers installed or available in the host environment. The repository contains additional experimental components, but the stable public claim is limited to the 13-tool MCP surface.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about My Pi

my-pi is an MCP server that connects coding agents to an explicitly selected local workspace through bounded filesystem, AST search, LSP navigation, and Git tools. It runs locally over stdio, starts read-only, and requires trusted elevation for file mutation or language-server process startup.

Install it with Node.js 24 or newer using `npm install -g @koonwang03/my-pi`, then run `my-pi-mcp --workspace /path/to/project`. You can also use `npx --yes --package @koonwang03/my-pi my-pi-mcp` for host configuration commands.

Pass the workspace explicitly with `--workspace /path/to/project` or set `MY_PI_WORKSPACE_ROOT`. Starting without either value fails closed. Use `--allow-cwd` only when intentionally granting access to the current directory.

Yes, my-pi provides a `host-config cursor-local` command that generates a Cursor-specific configuration snippet. The server communicates with compatible hosts over stdio and can be started against an explicitly selected workspace.

my-pi can require a raw SHA-256 content precondition for writes and patches. The operation is rejected when the current file content differs from the expected fingerprint, preventing a guarded update from silently replacing newer changes.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMy Pi AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/my-pi?style=directory)](https://allmcps.com/mcp/my-pi)
HTML Embed
<a href="https://allmcps.com/mcp/my-pi"><img src="https://allmcps.com/api/badge/my-pi?style=directory" alt="My Pi on AllMCPs" /></a>