Back to Library
MCP Server Config Template
template
Template for configuring Model Context Protocol servers
mcptemplateconfigurationclaude-code
Prompt Content
{
"mcpServers": {
"{{server_name}}": {
"command": "{{command}}",
"args": {{args}},
"env": {
{{env_vars}}
}
}
}
}
## Common MCP Servers
### Filesystem
```json
"filesystem": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-filesystem", "/path/to/dir"]
}
```
### GitHub
```json
"github": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-github"],
"env": { "GITHUB_TOKEN": "your-token" }
}
```
### PostgreSQL
```json
"postgres": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-postgres", "connection-string"]
}
```Variables
This prompt uses the following variables that should be replaced
{{server_name}}server_namestringRequired
Name identifier for the MCP server
{{command}}commandstringRequired
Command to run the server
{{args}}argsarrayRequired
Command arguments as JSON array
{{env_vars}}env_varsstring
Environment variables
Details
- Category
- template
- Version
- 1
- Created
- 12/12/2025
- Last Updated
- 12/12/2025