devtools MCPサーバー
✓ 検証済みAIエージェントに対し、ローカルファイルシステム、データベース、システムプロセス、およびOpenAPIエンドポイントへの安全でスコープ限定されたアクセスを提供します。
別名 marin1321/mcp-devtools, @oscarmarin/mcp-devtools
- スター
- 4
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 1.0.1
- 最終コミット
- 2026年7月1日
- ライセンス
- MIT
devtools MCPとは
devtoolsはMCPサーバーです。 AIエージェントに対し、ローカルファイルシステム、データベース、システムプロセス、およびOpenAPIエンドポイントへの安全でスコープ限定されたアクセスを提供します。.
プロジェクトのREADMEから生成された概要
devtools MCP server について
mcp-devtoolsは、Claude、Cursor、CopilotなどのAIエージェントに対し、ローカルの開発環境への安全なアクセスを可能にします。14種類の特化型ツールを通じて、エージェントがファイルシステム、データベース、システムプロセス、およびOpenAPIエンドポイントとやり取りするための統一されたインターフェースを提供します。開発者は、npxを使用してstdio経由でローカルにサーバーを実行するか、リモートアクセスのためにBearer認証を備えたHTTPトランスポートをセットアップできます。
このサーバーには、ファイルシステムのスコープ境界、プロセス実行のためのコマンド許可リスト、データベースクエリ用の読み取り専用モードなど、組み込みのセキュリティ対策が含まれています。また、ツールの呼び出しを追跡するための監査ログや、環境変数の自動シークレットマスキング機能も備えています。ユーザーはPlugin APIを使用して、設定ファイル経由でカスタムツールの定義をロードすることで、コードをフォークせずに機能を拡張できます。これにより、AI主導のワークフロー内で複数の開発タスクを管理するために、単一のプロダクショングレードのパッケージを必要とする開発者にとって、汎用性の高い選択肢となります。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
devtools MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude Codeにdevtools MCPをインストール
$ claude mcp add mcp-devtools -- npx -y @oscarmarin/mcp-devtoolsCursorにdevtools MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-devtools": {
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}VS Codeにdevtools MCPをインストール
.vscode/mcp.json
{
"servers": {
"mcp-devtools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}VS Code CLIにdevtools MCPをインストール
$ code --add-mcp '{"name":"mcp-devtools","type":"stdio","command":"npx","args":["-y","@oscarmarin/mcp-devtools"]}'Claude Desktopにdevtools MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"mcp-devtools": {
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}Codexにdevtools MCPをインストール
$ codex mcp add mcp-devtools -- npx -y @oscarmarin/mcp-devtoolsCodex config.tomlにdevtools MCPをインストール
~/.codex/config.toml
[mcp_servers.mcp-devtools] command = "npx" args = ["-y", "@oscarmarin/mcp-devtools"]
Gemini CLIにdevtools MCPをインストール
$ gemini mcp add -s user mcp-devtools npx -- -y @oscarmarin/mcp-devtoolsGemini settings.jsonにdevtools MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"mcp-devtools": {
"command": "npx",
"args": [
"-y",
"@oscarmarin/mcp-devtools"
]
}
}
}自動チェック
実行日 2026年11月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能marin1321/mcp-devtools is public and reachablegithub.com/marin1321/mcp-devtools ↗合格
- パッケージがこのリポジトリをソースとして指定@oscarmarin/mcp-devtools names marin1321/mcp-devtools as sourcenpmjs.com/package/@oscarmarin/mcp-devtools ↗合格
- ビルドの来歴 (Sigstore 証明)No build attestation published for this release未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-07-01github.com/marin1321/mcp-devtools ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @oscarmarin/mcp-devtools合格
- パッケージおよびその依存関係に重大な勧告なし139 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見る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.
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のよくある質問
devtools MCPをClaude Codeに追加するには
ターミナルでclaude mcp add mcp-devtools -- npx -y @oscarmarin/mcp-devtoolsを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
devtools MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
独自のツールを追加してサーバーを拡張できますか?
Plugin APIを使用することで、リポジトリをフォークすることなくカスタムツールを追加できます。起動時の設定ベースのロード、またはツールモジュールの定義のいずれかを選択可能です。
このサーバーをHTTP経由で使用できますか?
はい、このサーバーはstdio(デフォルト)と、認証付きHTTPの2つのトランスポートモードをサポートしています。
シェルインジェクションは防止されますか?
はい、run_commandツールはシェルを介さずにspawn(file, args)を使用するため、コマンド引数によるシェルインジェクションは構造的に不可能です。