Edit the mcp.json configuration file for tools like AWS Q Developer and Claude Desktop.
AWS Q DeveloperおよびClaude DesktopのMCP(Model Context Protocol)設定ファイルを管理するためのMCPサーバーです。設定ファイルの読み込み、編集、検証を安全に行うことができます。
~/.aws/amazonq/mcp.json
(またはカスタムパス)に以下を追加します:
{
"mcpServers": {
"mcp-conf": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/r3-yamauchi/mcp-conf-mcp-server.git",
"mcp-conf-mcp-server"
]
}
}
}
設定ファイルのパスやバックアップディレクトリをカスタマイズできます:
環境変数 | 説明 | デフォルト値 |
---|---|---|
MCP_CONFIG_PATH | MCP設定ファイルのパス | ~/.aws/amazonq/mcp.json |
MCP_BACKUP_DIR | バックアップディレクトリのパス | 設定ファイルと同じディレクトリの backups/ 例: ~/.aws/amazonq/backups/ |
カスタム設定ファイルパスやバックアップディレクトリを指定したい場合:
{
"mcpServers": {
"mcp-conf": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/r3-yamauchi/mcp-conf-mcp-server.git",
"mcp-conf-mcp-server"
],
"env": {
"MCP_CONFIG_PATH": "/path/to/custom/mcp.json",
"MCP_BACKUP_DIR": "/path/to/custom/backups"
}
}
}
}
Claude Desktopの設定ファイルを管理する場合(~/Library/Application Support/Claude/claude_desktop_config.json
に追加):
{
"mcpServers": {
"mcp-conf-claude": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/r3-yamauchi/mcp-conf-mcp-server.git",
"mcp-conf-mcp-server"
],
"env": {
"MCP_CONFIG_PATH": "~/Library/Application Support/Claude/claude_desktop_config.json"
}
}
}
}
注:~
(チルダ)は自動的にホームディレクトリに展開されるため、ユーザー名の指定は不要です。
Windowsの場合(%APPDATA%\Claude\claude_desktop_config.json
に追加):
{
"mcpServers": {
"mcp-conf": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/r3-yamauchi/mcp-conf-mcp-server.git",
"mcp-conf-mcp-server"
],
"env": {
"MCP_CONFIG_PATH": "%APPDATA%\\Claude\\claude_desktop_config.json"
}
}
}
}
注:Windowsでは環境変数(%APPDATA%
、%USERPROFILE%
等)が自動的に展開されます。
# リポジトリをクローン
git clone https://github.com/r3-yamauchi/mcp-conf-mcp-server.git
cd mcp-conf-mcp-server
# 仮想環境を作成(推奨)
python3 -m venv venv
# アクティベート
# macOS/Linux:
source venv/bin/activate
# Windows:
venv\Scripts\activate
# インストール
pip install -e .
# サーバーを実行
mcp-conf-mcp-server
# AWS Q Developer(デフォルト)
mcp-conf-mcp-server
# Claude Desktop向け
MCP_CONFIG_PATH="$HOME/Library/Application Support/Claude/claude_desktop_config.json" mcp-conf-mcp-server
# カスタムバックアップディレクトリも指定
MCP_CONFIG_PATH=/path/to/custom/mcp.json MCP_BACKUP_DIR=/path/to/backups mcp-conf-mcp-server
このMCPサーバーは以下の設定ファイルに対応しています:
~/.aws/amazonq/mcp.json
~/Library/Application Support/Claude/claude_desktop_config.json
%USERPROFILE%\.aws\amazonq\mcp.json
%APPDATA%\Claude\claude_desktop_config.json
MCP_CONFIG_PATH
で任意のパスを指定可能~
)とWindows形式(%USERPROFILE%
、%APPDATA%
等)の両方に対応設定されている全てのMCPサーバーを一覧表示します。
例:
/mcp list_servers
特定のMCPサーバーの設定を取得します。
パラメータ:
name
(string, 必須): サーバーの名前例:
/mcp get_server name="my-server"
新しいMCPサーバー設定を追加します。
パラメータ:
name
(string, 必須): サーバーの名前command
(string, 必須): 実行するコマンドargs
(array, オプション): コマンドライン引数env
(object, オプション): 環境変数例:
/mcp add_server name="my-server" command="uvx" args=["--from", "git+https://github.com/user/repo.git", "package-name"]
既存のMCPサーバー設定を更新します。
パラメータ:
name
(string, 必須): サーバーの名前command
(string, オプション): 新しいコマンドargs
(array, オプション): 新しい引数env
(object, オプション): 追加/更新する環境変数replace_env
(boolean, オプション): 環境変数を完全に置き換える場合はtrue例:
# コマンドを更新
/mcp update_server name="my-server" command="python"
# 環境変数を追加(既存の環境変数とマージ)
/mcp update_server name="my-server" env={"API_KEY": "secret", "DEBUG": "true"}
# 環境変数を完全に置き換え
/mcp update_server name="my-server" env={"NEW_VAR": "value"} replace_env=true
MCPサーバー設定を削除します。
パラメータ:
name
(string, 必須): サーバーの名前例:
/mcp remove_server name="my-server"
現在のMCP設定ファイルを検証します。
例:
/mcp validate_config
MCP設定全体をJSON形式でエクスポートします。
例:
/mcp export_config
# 1. 現在の設定を確認
/mcp list_servers
# 2. 新しいサーバーを追加
/mcp add_server name="code-analyzer" command="uvx" args=["--from", "git+https://github.com/example/analyzer.git", "analyzer"]
# 3. 環境変数を設定
/mcp update_server name="code-analyzer" env={"ANALYSIS_LEVEL": "detailed"}
# 4. 設定を検証
/mcp validate_config
# 5. 設定をエクスポート(バックアップ用)
/mcp export_config
Windows環境で環境変数を使用する場合:
# コマンドプロンプト
set MCP_CONFIG_PATH=%APPDATA%\Claude\claude_desktop_config.json
mcp-conf-mcp-server
# PowerShell
$env:MCP_CONFIG_PATH = "$env:APPDATA\Claude\claude_desktop_config.json"
mcp-conf-mcp-server
# 開発依存関係をインストール
pip install -e ".[dev]"
# テストを実行
pytest
pytest -v # 詳細表示
# コード品質チェック
ruff format . # フォーマット
ruff check . # リント
mypy src # 型チェック
mcp-conf-mcp-server/
├── src/
│ └── mcp_conf_mcp_server/
│ ├── __init__.py # パッケージ初期化
│ ├── __main__.py # エントリーポイント
│ └── server.py # MCPサーバー実装
├── tests/
│ ├── test_server.py # 基本機能テスト
│ └── test_edge_cases.py # エッジケーステスト
├── pyproject.toml # プロジェクト設定
├── README.md # このファイル
├── CLAUDE.md # 開発者向けドキュメント
└── LICENSE # MITライセンス
設定ファイルが見つからない
echo $MCP_CONFIG_PATH
~/.aws/amazonq/mcp.json
権限エラー
ls -la ~/.aws/amazonq/mcp.json
chmod 644 ~/.aws/amazonq/mcp.json
JSONパースエラー
validate_config
ツールで検証プルリクエストを歓迎します!以下のガイドラインに従ってください:
ruff format
)MIT License - 詳細はLICENSEファイルを参照してください。
Official MCP server for Buildable AI-powered development platform. Enables AI assistants to manage tasks, track progress, get project context, and collaborate with humans on software projects.
An MCP server for generating images with the Midjourney API.
Generate high-quality images using Google's Imagen 3.0 model via the Gemini API.
MCP server for text-to-graphql, integrates with Claude Desktop and Cursor.
Generate and edit raster/vector images, vectorize, remove/replace backgrounds, and upscale using the Recraft AI API.
An AI-powered MCP server for analyzing NPM package security, dependencies, and performance.
A scientific computing server for symbolic math, data analysis, and visualization using popular Python libraries like NumPy, SciPy, and Pandas.
A simple note storage system with tools for adding notes and generating scripts from them.
Interact with various build systems including Gradle, Maven, NPM/Yarn, Cargo, Python, Makefile, and CMake.
Run and manage docker containers, docker compose, and logs