Manages Claude configuration files for both Claude Desktop and Claude Code projects. Handles MCP server configuration, environment variables, project settings, and developer options. Use when configuring Claude Desktop with MCP servers, setting up Claude Code project settings, managing environment variables for Claude, enabling debugging features, or troubleshooting Claude configuration issues.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
EXAMPLES.mdManages configuration files for Claude Desktop and Claude Code, including MCP server setup, project settings, and developer options.
Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json~/Library/Logs/Claude/~/Library/Application Support/Claude/developer_settings.jsonClaude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.json%APPDATA%\Claude\Logs\Claude Code (Project-specific):
.claude/settings.json.claude-plugin/marketplace.json{
"mcpServers": {
"server-name": {
"command": "command-to-run",
"args": ["arg1", "arg2"],
"env": {
"VAR_NAME": "value"
}
}
}
}
Python Server:
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/weather",
"run",
"server.py"
]
}
}
}
Node.js Server:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Documents"
]
}
}
}
With Environment Variables:
{
"mcpServers": {
"database": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"POSTGRES_CONNECTION_STRING": "postgresql://localhost/mydb",
"DB_PASSWORD": "${DATABASE_PASSWORD}"
}
}
}
}
{
"enabledPlugins": ["plugin-name"],
"extraKnownMarketplaces": {
"team-tools": {
"source": {
"source": "github",
"repo": "company/claude-plugins"
}
}
}
}
Automatically install marketplaces when team members trust the folder:
{
"extraKnownMarketplaces": {
"company-tools": {
"source": {
"source": "github",
"repo": "company/plugins"
}
},
"project-tools": {
"source": {
"source": "git",
"url": "https://git.company.com/project-plugins.git"
}
}
}
}
macOS:
echo '{"allowDevTools": true}' > ~/Library/Application\ Support/Claude/developer_settings.json
Open DevTools: Command-Option-Shift-i
Windows:
echo '{"allowDevTools": true}' > "$env:APPDATA\Claude\developer_settings.json"
{
"mcpServers": {
"myserver": {
"command": "mcp-server-myapp",
"env": {
"MYAPP_API_KEY": "secret_key_value",
"CUSTOM_VAR": "custom_value",
"PATH": "/custom/path:${PATH}"
}
}
}
}
Reference with ${VAR_NAME}:
{
"env": {
"API_KEY": "${MY_API_KEY}",
"DB_HOST": "${DATABASE_HOST}"
}
}
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Projects"
]
}
}
}
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"POSTGRES_CONNECTION_STRING": "${DATABASE_URL}"
}
}
}
}
{
"mcpServers": {
"custom-tools": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/server",
"run",
"server.py"
],
"env": {
"API_KEY": "${TOOLS_API_KEY}",
"DEBUG": "false"
}
}
}
}
# Claude Desktop config
jq empty ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Claude Code settings
jq empty .claude/settings.json
# Extract server names
jq -r '.mcpServers | keys[]' ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Check specific server
jq '.mcpServers["server-name"]' ~/Library/Application\ Support/Claude/claude_desktop_config.json
Checks:
~/Library/Logs/Claude/mcp*.log# View all MCP logs (macOS)
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
# View specific server logs
tail -f ~/Library/Logs/Claude/mcp-server-SERVERNAME.log
# General MCP connection logs
tail -f ~/Library/Logs/Claude/mcp.log
Issue: Working directory undefined
Issue: Environment variables not available
env objectIssue: Windows path errors
C:/Users/name/pathIssue: Server not starting
Install server (if needed)
npm install -g @modelcontextprotocol/server-filesystem
# or
cd ~/my-server && uv sync
Get full paths
which npx # /usr/local/bin/npx
pwd # /Users/name/my-server
Add to config
{
"mcpServers": {
"my-server": {
"command": "/usr/local/bin/npx",
"args": ["-y", "server-package"]
}
}
}
Restart Claude Desktop
Verify in logs
tail -f ~/Library/Logs/Claude/mcp-server-my-server.log
Create settings file
mkdir -p .claude
Add marketplaces
{
"extraKnownMarketplaces": {
"team-tools": {
"source": {
"source": "github",
"repo": "company/plugins"
}
}
}
}
Commit to repository
git add .claude/settings.json
git commit -m "feat: add Claude Code team configuration"
Team members trust folder