devtools MCP server
✓ VerifiedProvides AI agents with safe, scoped access to local filesystems, databases, system processes, and OpenAPI endpoints.
Also known as marin1321/mcp-devtools, @oscarmarin/mcp-devtools
- Stars
- 4
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- 1.0.1
- Last commit
- Jul 1, 2026
- License
- MIT
What is devtools MCP?
devtools provides AI agents with safe, scoped access to local filesystems, databases, system processes, and OpenAPI endpoints.
Summary generated from the project's README
About devtools MCP server
Giving AI agents like Claude, Cursor, or Copilot safe access to your local development environment is what mcp-devtools enables. It provides a unified interface for agents to interact with filesystems, databases, system processes, and OpenAPI endpoints through 14 specialized tools. Developers can run the server locally using stdio via npx or set up an HTTP transport with Bearer authentication for remote access.
The server includes built-in security measures such as filesystem scope boundaries, a command allowlist for running processes, and a read-only mode for database queries. It also features an audit log for tracking tool invocations and automatic secret masking for environment variables. Users can extend the functionality without forking the code by using the Plugin API to load custom tool definitions via configuration files. This makes it a versatile choice for developers who need a single, production-grade package to manage multiple development tasks within an AI-driven workflow.
Written from the project's README. Every use case is checked against a quote from it.
How to install devtools MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall devtools MCP in Claude Code
$ claude mcp add mcp-devtools -- npx -y @oscarmarin/mcp-devtoolsInstall devtools MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-devtools": {
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}Install devtools MCP in VS Code
.vscode/mcp.json
{
"servers": {
"mcp-devtools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}Install devtools MCP in VS Code CLI
$ code --add-mcp '{"name":"mcp-devtools","type":"stdio","command":"npx","args":["-y","@oscarmarin/mcp-devtools"]}'Install devtools MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"mcp-devtools": {
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}Install devtools MCP in Codex
$ codex mcp add mcp-devtools -- npx -y @oscarmarin/mcp-devtoolsInstall devtools MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.mcp-devtools] command = "npx" args = ["-y", "@oscarmarin/mcp-devtools"]
Install devtools MCP in Gemini CLI
$ gemini mcp add -s user mcp-devtools npx -- -y @oscarmarin/mcp-devtoolsInstall devtools MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"mcp-devtools": {
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}Automated checks
Ran Nov 15, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablemarin1321/mcp-devtools is public and reachablegithub.com/marin1321/mcp-devtools ↗Pass
- Package names this repository as its source@oscarmarin/mcp-devtools names marin1321/mcp-devtools as sourcenpmjs.com/package/@oscarmarin/mcp-devtools ↗Pass
- Build provenance (Sigstore attestation)No build attestation published for this releaseNot checked
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-07-01github.com/marin1321/mcp-devtools ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from @oscarmarin/mcp-devtoolsPass
- No critical advisory in the package or its dependencies139 resolved dependencies checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNot checked
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubmcp-devtools
AI-native developer tools via Model Context Protocol. A production-grade MCP server that gives AI agents (Claude, Cursor, Copilot, Continue, ...) safe, scoped access to your local development environment.
Why
The MCP ecosystem is full of single-purpose tutorials and vendor-locked adapters. There is no well-maintained, multi-tool, framework-agnostic, production-quality MCP package for everyday developer tooling.
mcp-devtools fills that gap with 14 tools, 3 MCP Resources,
4 MCP Prompts, a Plugin API, two transport modes (stdio + HTTP
with auth), and an audit log — built on patterns refined in production
at DailyBot.
Quick start
stdio (default)
npx @oscarmarin/mcp-devtools
Add it to Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"devtools": {
"command": "npx",
"args": ["-y", "@oscarmarin/mcp-devtools"]
}
}
}
Or Cursor (~/.cursor/mcp.json): same block.
HTTP transport
Create a mcp-devtools.json in your project root:
{
"transport": "http",
"port": 3333,
"auth": {
"token": "env:MCP_AUTH_TOKEN"
}
}
Then start the server:
npx @oscarmarin/mcp-devtools
The MCP endpoint will be available at http://localhost:3333.
Tools
| Group | Tools |
|---|---|
| Filesystem | read_file, write_file, list_directory, search_files, get_file_info |
| Database | query_db, list_tables, describe_table |
| Process | run_command, read_logs, get_env, list_processes |
| OpenAPI | parse_openapi, call_api |
Per-tool reference: docs/tools/.
MCP Resources
The server exposes read-only data via MCP Resources:
| URI | Description |
|---|---|
devtools://tools |
Catalog of all registered tools with schemas |
devtools://server-info |
Server version, transport, scope, tool count |
MCP Prompts
Curated prompt templates for common development workflows:
| Prompt | Description |
|---|---|
debug_error |
Systematically debug an error using mcp-devtools tools |
code_review |
Review a file for bugs, security issues, and code quality |
explore_codebase |
Explore and understand a project's structure and conventions |
refactor_function |
Refactor a function for readability, performance, or testability |
Plugin API
Extend mcp-devtools with custom tools — no fork required.
Config-based (load at startup):
{
"plugins": ["./my-tools.js", "@scope/mcp-plugin-foo"]
}
Each plugin module default-exports an array of tool definitions:
import { defineTool } from "@oscarmarin/mcp-devtools";
import { z } from "zod";
export default [
defineTool({
name: "my_tool",
description: "Does something useful",
inputSchema: z.object({ input: z.string() }),
handler: async (args, config) => ({
ok: true,
data: { result: args.input.toUpperCase() },
}),
}),
];
Configuration
Configuration is loaded by cosmiconfig
from mcp-devtools.json, .mcp-devtoolsrc, or the mcpDevtools key in
package.json. See mcp-devtools.example.json
and docs/configuration.md for the full schema.
Zero-config is supported: running npx @oscarmarin/mcp-devtools with no config uses
schema defaults (RNF-05).
Security
Four non-bypassable controls:
- Filesystem scope boundary. Every path is resolved to an absolute and
compared against
config.scope. Symlinks that escape scope throwSCOPE_VIOLATION. - Command allowlist.
run_commandonly executes binaries whose basename is inallowedCommands. Invocation usesspawn(file, args)(no shell), so shell-injection via the command argument is structurally impossible. - Database read-only mode. When
readOnly: true, all SQL is parsed andINSERT/UPDATE/DELETE/DROP/CREATE/GRANTare rejected. Queries run inBEGIN READ ONLY ... ROLLBACKon PostgreSQL. - HTTP Bearer auth. When
auth.tokenis configured, every HTTP request must includeAuthorization: Bearer <token>. Comparison usescrypto.timingSafeEqualto prevent timing attacks.
Additional safety measures:
- Audit log. Opt-in NDJSON log of every tool invocation with timing, sanitized inputs, and result status.
- Secret masking.
get_envautomatically masks values matching common secret patterns (SECRET,TOKEN,PASSWORD,KEY, etc.). - OpenAPI host restriction.
call_apionly sends requests to hosts listed in the spec'sserversarray. - Output capping. All tools cap their output to prevent context flooding (100KB for commands, 1MB for files, 200 rows for queries).
Contributing
git clone https://github.com/marin1321/mcp-devtools.git
cd mcp-devtools
npm install
npm run dev # tsup --watch
npm run test # vitest
npm run typecheck # tsc --noEmit
npm run lint # eslint .
See CONTRIBUTING.md for the full workflow and
CODE_OF_CONDUCT.md for community guidelines.
License
MIT © Oscar Humberto Marin Molina — oscarmarindev.com
devtools MCP questions
How do I add devtools MCP to Claude Code?
Run claude mcp add mcp-devtools -- npx -y @oscarmarin/mcp-devtools in your terminal. Add --scope user to make it available in every project.
How do I add devtools MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
How can I extend the server with my own tools?
You can use the Plugin API to extend the server with custom tools without forking it, either via config-based loading at startup or by defining tool modules.
Can I use this server over HTTP?
Yes, the server supports two transport modes: stdio (default) and HTTP with authentication.
Does the server prevent shell injection?
Yes, the run_command tool uses spawn(file, args) without a shell, making shell-injection via command arguments structurally impossible.