Claude Tools MCP logo

Claude Tools MCP

Expose shell commands and file operations to MCP clients over a stateless HTTP server.

Install Claude Tools MCP

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

Setup steps from the project

claude-tools-mcp 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
    go build -o claude-tools-mcp ./cmd/claude-tools-mcp
    
  2. 2. Install
    docker build -t claude-tools-mcp .
    
  3. 3. Start the server
    docker run -p 8080:8080 claude-tools-mcp
    
  4. 4. Start the server
    ./claude-tools-mcp
    
  5. 5. Start the server
    ./claude-tools-mcp --addr localhost:9000
    
  6. 6. Start the server
    docker run -e PORT=9000 -p 9000:9000 claude-tools-mcp
    

Overview

claude-tools-mcp exposes Claude Code-style shell and file manipulation tools to MCP clients over HTTP. It supports command execution, background process control, file reads and writes, exact edits, glob-based file discovery, and ripgrep content searches. Stateless request handling suits remote deployments and horizontal scaling, while background shells and file modification tracking retain server-side state where needed. Reach for it when an agent needs controlled access to a remote filesystem and shell environment.

Use cases

  • Run shell commands on a remote development host
  • Read and modify files through an MCP client
  • Search repositories with glob patterns and ripgrep
  • Manage long-running background shell processes
  • Deploy stateless MCP tool access behind multiple instances

Key features

  • HTTP transport for MCP clients
  • Shell execution with timeouts and background jobs
  • File read, write, and exact-edit operations
  • Glob-based file discovery
  • Ripgrep content search with regex support
  • Path, output, and result-size limits

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.

Adoption & maintenance

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

GitHub stars17Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Claude Tools MCP works

What claude-tools-mcp does

claude-tools-mcp makes a set of shell and filesystem operations available through the Model Context Protocol over HTTP. MCP clients can use it to run commands, inspect and change files, locate paths, and search file contents on the machine hosting the server. The server is implemented in Go with the MCP Go SDK.

Its shell interface includes command execution with timeouts and optional background execution. Separate operations retrieve output from background processes and stop them. File operations cover reading with line-range controls, writing new content, and replacing an exact string in an existing file. File discovery uses glob patterns, while content search uses ripgrep and supports regular expressions and multiple output modes.

How it works

The HTTP service handles requests independently in stateless mode, which makes each request self-contained and supports deployments with more than one server instance. Two pieces of state are retained for specific features: tracking detects external changes to edited files, and background shell management keeps long-running processes available for later output retrieval or termination.

The default listener is localhost:8080. A command-line address option can select another host and port. Docker deployments can instead set the PORT environment variable and publish the matching container port.

Several operational limits are built in. HTTP header and idle timeouts help prevent connections from remaining slow or inactive indefinitely, and SIGINT or SIGTERM triggers a graceful shutdown so in-flight requests can finish. Relative paths are rejected, file size is capped at 10 MB, tool output is limited to roughly 100,000 tokens, and glob or grep results are limited to 1,000 lines.

Setup and configuration

Build from source with Go 1.25 or newer:

bash
go build -o claude-tools-mcp ./cmd/claude-tools-mcp
./claude-tools-mcp

Use --addr to change the listening address, for example --addr localhost:9000. The project also includes a self-contained Dockerfile:

Terminal
docker build -t claude-tools-mcp .
docker run -p 8080:8080 claude-tools-mcp

For another container port, set PORT and publish the same port, such as docker run -e PORT=9000 -p 9000:9000 claude-tools-mcp.

The grep operation requires the rg executable to be installed. The project uses the MCP Go SDK, Cobra for its command-line interface, and a MIME type detection library. Tests can be run with go test ./..., or targeted at a package or test function using standard Go test options.

Tools and capabilities

  • bash: Run shell commands with timeout and background-process options.
  • bash_output: Retrieve output from a background shell process.
  • kill_shell: Stop a background shell process.
  • read: Read a file with optional line offset and limit.
  • write: Write content to disk.
  • edit: Replace an exact string in a file.
  • glob: Find files matching a glob pattern.
  • grep: Search file contents with ripgrep, including regex searches and selectable output modes.

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 Claude Tools MCP

claude-tools-mcp is an MCP server that exposes Claude Code's file and shell tools over HTTP to MCP clients. Its main tools run and manage shell processes, read and modify files, find paths with glob patterns, and search content with ripgrep. Requests are handled statelessly, aside from background processes and file modification tracking.

Build it from source with Go 1.25 or newer, or build and run the supplied Docker image. The source command is `go build -o claude-tools-mcp ./cmd/claude-tools-mcp`; Docker uses `docker build -t claude-tools-mcp .` followed by a published container port.

Use the `--addr` option when running the binary, such as `./claude-tools-mcp --addr localhost:9000`. In Docker, set `PORT` and publish the corresponding port, for example `-e PORT=9000 -p 9000:9000`.

Yes, the `grep` tool requires the `rg` executable. Install ripgrep in the environment where claude-tools-mcp runs so content searches can execute.

Yes, it is designed to work with MCP clients over HTTP, including clients that support HTTP MCP servers such as Cursor. Configure the client to connect to the server's HTTP endpoint.

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 PreviewClaude Tools MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/claude-tools-mcp?style=directory)](https://allmcps.com/mcp/claude-tools-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/claude-tools-mcp"><img src="https://allmcps.com/api/badge/claude-tools-mcp?style=directory" alt="Claude Tools MCP on AllMCPs" /></a>