# marin1321/mcp-devtools [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/marin1321/mcp-devtools  
**GitHub Stars:** 4  
**npm Downloads (last month):** 206  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/marin1321-mcp-devtools

## Description
Production-grade MCP server for secure access to local dev environments (filesystem, databases, processes, OpenAPI). Includes scope enforcement, command allowlist, and read-only DB mode.

## Tools
Capabilities this server exposes over MCP:

- **echo_test** — Returns the provided message and a server-side ISO timestamp. Used to verify the MCP server pipeline end-to-end.
- **read_file** — Read a text file inside the configured scope. Optionally restrict to a line range.
- **write_file** — Write a file atomically inside the configured scope (writes to a temp file then renames).
- **list_directory** — List directory entries inside the configured scope, with optional recursion and glob filtering.
- **search_files** — Search for a pattern (literal or regex) across files inside the configured scope.
- **get_file_info** — Return metadata (size, type, MIME, line count, symlink info) for a file or directory.
- **query_db** — Execute a parameterized SQL query against a configured database connection. Read-only by default.
- **list_tables** — List tables in a configured database connection.
- **describe_table** — Return column metadata for a table in a configured database connection.
- **run_command** — Spawn a process from the configured allowedCommands list. Captures stdout/stderr with caps and a timeout.
- **read_logs** — Read the tail of a configured log file with optional filter.
- **get_env** — Return environment variables (process env or .env file) with optional masking.
- **list_processes** — List running processes, optionally filtered by name or listening port.
- **parse_openapi** — Parse an OpenAPI spec and return a summary of operations.
- **call_api** — Invoke an operation defined in an OpenAPI spec.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-devtools": {
    "command": "npx",
    "args": ["-y","@oscarmarin/mcp-devtools"]
  }
}
```

## Documentation

## What marin1321/mcp-devtools MCP server does

marin1321/mcp-devtools MCP server exposes common local development operations through the Model Context Protocol. Its 14 built-in tools cover four areas:

- Filesystem access: read, write, list, search, and inspect files.
- Database access: query a database, list tables, and describe table structures.
- Process access: run approved commands, read logs, inspect environment variables, and list processes.
- OpenAPI access: parse an OpenAPI document and call an API described by it.

The server also publishes three read-only MCP Resources. `devtools://tools` lists registered tools and schemas, while `devtools://server-info` reports server metadata such as its version, transport, scope, and tool count. Four prompt templates support debugging errors, reviewing code, exploring a codebase, and refactoring a function.

## How it works

The default transport is stdio, which lets an MCP client start the server as a local process. HTTP transport is also available; when a token is configured, requests must use a Bearer token in the `Authorization` header. The HTTP endpoint can be configured with a port, such as `3333`.

Configuration is loaded through cosmiconfig. Supported locations include `mcp-devtools.json`, `.mcp-devtoolsrc`, and the `mcpDevtools` property in `package.json`. Running the package without a configuration file is supported and uses schema defaults.

Security checks apply at the tool boundary. File paths are resolved and checked against the configured scope, including symlink escapes. Commands are restricted by executable basename and launched without a shell. Database read-only mode rejects write and schema-changing SQL statements; PostgreSQL queries run inside a read-only transaction. OpenAPI requests are limited to hosts listed in the specification, and tool output is capped to limit context size.

## Setup and configuration

Node.js 20 or newer is required. The simplest launch command is:

```bash
npx @oscarmarin/mcp-devtools
```

For Claude Desktop or Cursor, add an MCP server entry that runs `npx` with `-y` and `@oscarmarin/mcp-devtools` as its argument. To use HTTP, place a configuration file named `mcp-devtools.json` in the project root, set `transport` to `http`, choose a port, and optionally configure an environment-backed authentication token such as `env:MCP_AUTH_TOKEN`.

Configuration can define the filesystem scope, allowed command names, database behavior, audit logging, authentication, and plugins. Plugins are loaded at startup from local module paths or package names. A plugin module exports an array of tool definitions, allowing custom tools without modifying the project source.

## Tools and capabilities

The filesystem tools support bounded file operations and metadata inspection. Database tools provide query and schema discovery operations. Process tools expose command execution, logs, environment data, and process listings, with environment values matching common secret names masked automatically.

An opt-in NDJSON audit log records tool invocations, timing, sanitized inputs, and result status. Output limits are 100 KB for commands, 1 MB for files, and 200 rows for database queries. These controls make marin1321/mcp-devtools MCP server suitable for agents that need local context without unrestricted access to the entire environment.

## Limitations and notes

Filesystem, command, and database behavior depends on the configured scope, allowlist, and database mode. `run_command` cannot execute binaries outside `allowedCommands`, and read-only database mode blocks operations including `INSERT`, `UPDATE`, `DELETE`, `DROP`, `CREATE`, and `GRANT`.

HTTP authentication applies when `auth.token` is configured; stdio does not use that HTTP request flow. OpenAPI calls cannot target hosts absent from the specification's `servers` list. Output caps can truncate large command results, files, or query responses. marin1321/mcp-devtools MCP server is distributed under the MIT license.

_Full upstream README: https://allmcps.com/mcp/marin1321-mcp-devtools/readme_

