Skip to main content
Glama

Project Explorer

Project Explorer is a read-only MCP server that lets an assistant such as ChatGPT, Gemini or Claude read the files you choose from a Git repository on your machine. It reads the working tree as it is now, uncommitted changes included, and the branches and linked worktrees you allow.

It was built for one job: asking a chat assistant to explain what a coding agent is doing in a worktree before that work is committed. It is useful whenever you want an assistant to read a private repository without uploading it and without giving the assistant a shell.

How it works

MCP client ──HTTPS──▶ tunnel ──▶ bridge ──stdio──▶ backend
(ChatGPT, Gemini)                (host, loopback)   (container, no network)
                                 OAuth, fixed tools  policy, read-only mount
  • The backend runs in a container with no network, a read-only root file system and a read-only mount of one repository. It decides what may be read.

  • The bridge runs on the host and listens on loopback only. It checks the OAuth token and forwards a fixed set of read-only tools to the backend over stdio.

  • A policy file per project lists the directories, files and extensions that are shared. Everything else stays closed, including directories added later.

Related MCP server: Git Code Review MCP

What you get

  • Eleven read-only tools: list and search files, read line ranges, Git status and diffs, and the log, diff and files of other branches. See docs/tools.md.

  • An allowlist per project, on top of global rules that always hide .git, .env*, key files and similar names. See docs/policy.md.

  • OAuth 2.1 resource-server checks that accept only the user IDs you list.

  • Uncommitted work in linked worktrees, and committed work on other branches, when the policy allows it.

  • Bounded output: every tool has size and time limits and says when a result was cut short.

It does not write to the repository, run commands, or read outside the repository and its worktrees. Shared file content does leave your machine: it is sent to the assistant you connect. docs/security.md describes what is protected and what is not.

Requirements

Python 3.11 or later, uv, Git and ripgrep. Serving a real project also needs Docker. Sharing over HTTPS needs a tunnel such as cloudflared or ngrok.

Try it

git clone https://github.com/Willkczy/project-explorer.git
cd project-explorer
uv sync
uv run project-explorer demo check

This creates a temporary synthetic repository, calls every working-tree tool through the real MCP protocol and prints one PASS line per check. To run the same check in the container:

uv run project-explorer build
uv run project-explorer demo check --docker

Share a repository

cp policies/project.example.json policies/my-project.json   # edit what to share
uv run project-explorer preview --root /path/to/repo --policy policies/my-project.json
uv run project-explorer prepare --root /path/to/repo --policy policies/my-project.json
uv run project-explorer check --project my-project

preview lists exactly the files the policy shares and writes nothing. prepare records the project, and check calls the tools in the container without starting any network service.

Then connect a client:

Client

Guide

A program on the same machine, such as Claude Code

docs/clients/local.md

ChatGPT on the web

docs/setup.md, then docs/clients/chatgpt.md

Gemini on the web

docs/setup.md, then docs/clients/gemini.md

Documentation

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to interact with local Git repositories for operations like status, commits, branching, and diffs, plus GitHub API integration for managing pull requests when authenticated.
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to perform code reviews by providing access to staged files, git diffs, and repository file content. It allows users to evaluate changes and context within any local git repository before committing or pushing.
      3
      4 npm
      ISC
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to inspect local Git repositories and interact with the GitHub API for reading commits, diffs, files, issues, comments, pull requests, and project boards.
      10
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to generate annotated file trees, retrieve file statistics, list git-changed files, and read file contents from local directories or GitHub repositories.
      MIT