Agent skill
mcp-server-config
Manage .mcp.json MCP server configurations. Use when configuring MCP servers, adding server entries, managing MCP config files, or when user mentions .mcp.json, MCP server setup, server configuration.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/mcp-server-config
SKILL.md
MCP Server Config
This skill manages .mcp.json files for MCP server configuration.
Instructions
Adding MCP Server
-
Add Server Entry
- Use script:
scripts/add-mcp-server.sh <server-name> <command> <args...> - Updates
.mcp.jsonwith new server configuration
- Use script:
-
Configure Environment Variables
- Use script:
scripts/set-server-env.sh <server-name> <VAR=value> - Adds environment variables to server config
- Use script:
Managing Configuration
-
List Servers
- Use script:
scripts/list-mcp-servers.sh - Shows all configured MCP servers
- Use script:
-
Remove Server
- Use script:
scripts/remove-mcp-server.sh <server-name> - Removes server from configuration
- Use script:
-
Validate Config
- Use script:
scripts/validate-mcp-config.sh - Checks
.mcp.jsonstructure and server definitions
- Use script:
Available Scripts
scripts/add-mcp-server.sh- Add new MCP server to configscripts/remove-mcp-server.sh- Remove server from configscripts/list-mcp-servers.sh- List all configured serversscripts/set-server-env.sh- Set environment variables for serverscripts/validate-mcp-config.sh- Validate .mcp.json structure
Available Templates
FastMCP Configuration
templates/fastmcp-config-template.json- fastmcp.json for FastMCP Cloud deployment
STDIO Deployment (Local IDEs)
templates/mcp-stdio-python-template.json- .mcp.json for Python commandtemplates/mcp-stdio-uv-template.json- .mcp.json for UV runnertemplates/mcp-config-template.json- Generic .mcp.json template
HTTP Deployment
templates/mcp-http-template.json- .mcp.json for HTTP transport
Cloud Deployment
templates/mcp-cloud-template.json- .mcp.json for FastMCP Cloud
Examples
Example 1: Add Postman MCP Server
# Add Postman server
./scripts/add-mcp-server.sh postman npx -y @executeautomation/postman-mcp-server
# Set API key
./scripts/set-server-env.sh postman POSTMAN_API_KEY="\${POSTMAN_API_KEY}"
Example 2: Manage Servers
# List all servers
./scripts/list-mcp-servers.sh
# Remove a server
./scripts/remove-mcp-server.sh old-server
# Validate configuration
./scripts/validate-mcp-config.sh
Requirements
- jq for JSON processing
- Valid .mcp.json file (or will be created)
Success Criteria
- ✅ .mcp.json created/updated correctly
- ✅ Server configuration valid
- ✅ Environment variables properly set
- ✅ Config validates successfully
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?