# claude-tools-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/mathematic-inc/claude-tools-mcp  
**GitHub Stars:** 17  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/claude-tools-mcp

## Description
MCP server that exposes Claude Code's file and shell tools (bash, read, write, edit, glob, grep) over HTTP for remote use by any MCP client

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/mathematic-inc/claude-tools-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
go build -o claude-tools-mcp ./cmd/claude-tools-mcp
```

2. Install:

```sh
docker build -t claude-tools-mcp .
```

3. Start the server:

```sh
docker run -p 8080:8080 claude-tools-mcp
```

4. Start the server:

```sh
./claude-tools-mcp
```

5. Start the server:

```sh
./claude-tools-mcp --addr localhost:9000
```

6. Start the server:

```sh
docker run -e PORT=9000 -p 9000:9000 claude-tools-mcp
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/claude-tools-mcp/readme_

