mcp-devtools
mcp-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.
Related MCP server: GPT Commander
Quick start
stdio (default)
npx @oscarmarin/mcp-devtoolsAdd 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-devtoolsThe MCP endpoint will be available at http://localhost:3333.
Tools
Group | Tools |
Filesystem |
|
Database |
|
Process |
|
OpenAPI |
|
Per-tool reference: docs/tools/.
MCP Resources
The server exposes read-only data via MCP Resources:
URI | Description |
| Catalog of all registered tools with schemas |
| Server version, transport, scope, tool count |
MCP Prompts
Curated prompt templates for common development workflows:
Prompt | Description |
| Systematically debug an error using mcp-devtools tools |
| Review a file for bugs, security issues, and code quality |
| Explore and understand a project's structure and conventions |
| 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
Available Tools
15 toolscall_apiCall APIC
Invoke an operation defined in an OpenAPI spec.
Inputs: specPath (required), operationId (required), pathParams, queryParams, +2 more.
describe_tableDescribe tableC
Return column metadata for a table in a configured database connection.
Inputs: table (required), connection, schema.
echo_testEcho testA
Returns the provided message and a server-side ISO timestamp. Used to verify the MCP server pipeline end-to-end.
Inputs: message (required).
get_envGet environmentC
Return environment variables (process env or .env file) with optional masking.
Inputs: source, path, keys, maskSecrets.
get_file_infoGet file infoA
Return metadata (size, type, MIME, line count, symlink info) for a file or directory.
Inputs: path (required).
list_directoryList directoryC
List directory entries inside the configured scope, with optional recursion and glob filtering.
Inputs: path, depth, glob, includeHidden.
list_processesList processesB
List running processes, optionally filtered by name or listening port.
Inputs: name, port, limit.
list_tablesList tablesC
List tables in a configured database connection.
Inputs: connection, schema.
parse_openapiParse OpenAPIB
Parse an OpenAPI spec and return a summary of operations.
Inputs: path (required).
query_dbQuery databaseC
Execute a parameterized SQL query against a configured database connection. Read-only by default.
Inputs: sql (required), connection, params, timeoutMs, +1 more.
read_fileRead fileB
Read a text file inside the configured scope. Optionally restrict to a line range.
Inputs: path (required), startLine, endLine.
read_logsRead logsC
Read the tail of a configured log file with optional filter.
Inputs: path (required), tail, filter, jsonField.
run_commandRun commandC
Spawn a process from the configured allowedCommands list. Captures stdout/stderr with caps and a timeout.
Inputs: command (required), args, cwd, timeoutMs, +1 more.
search_filesSearch filesC
Search for a pattern (literal or regex) across files inside the configured scope.
Inputs: pattern (required), path, glob, regex, +4 more.
write_fileWrite fileA
Write a file atomically inside the configured scope (writes to a temp file then renames).
Inputs: path (required), content (required), encoding, createDirs.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct operation: database metadata vs query, file read vs write vs listing vs search, process listing vs command execution, API calling vs spec parsing, etc. No two tools have overlapping purposes.
All tools follow a verb_noun pattern in snake_case (e.g., list_directory, read_file, query_db). The verbs vary but are appropriate for the action, and the naming is uniform throughout.
15 tools is slightly broad for a devtools server covering databases, files, processes, APIs, logs, and environment variables, but each tool has a clear role and the count is not excessive for a general-purpose utility server.
Core developer utilities are covered (file ops, database queries, command execution, API handling), but there are gaps like no process kill, no file editing, no HTTP utilities, and database is read-only. The set feels like a curated collection rather than a comprehensive toolkit.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceOpen-source, local macOS MCP server for AI agents. Automate background Safari/Chrome tabs, native apps, files and shell with scoped permissions, optional approvals and delegated coding agents.97MIT
- AlicenseCqualityDmaintenanceA security-first MCP server that provides LLMs with structured tools for filesystem, process, search, build/test/lint, IDE integration, and more.402PolyForm Noncommercial 1.0.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives your AI assistant full awareness of your local dev environment — running processes, Docker containers, git state, open ports, log files, and more.8 npm1MIT
- AlicenseNot gradedqualityCmaintenanceA self-hosted MCP server that gives AI agents controlled access to a machine: filesystem, shell, background processes, git, web fetching and persistent key-value memory.GPL 3.0