MCP Configuration MCP
Configure MCP (Model Context Protocol) server integration.
Overview
MCP enables AI to use external tools via the MCP protocol.
Basic Configuration
yaml
mcp:
enabled: true # Enable MCP
timeout: 30000 # Connection timeout (ms)
autoConnect: true # Auto-connect on startupServer Configuration
Edit data/mcp-servers.json:
json
{
"servers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-filesystem", "/allowed/path"],
"env": {}
},
"memory": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-memory"]
}
}
}Server Options
| Option | Type | Description |
|---|---|---|
command | string | Command to run |
args | array | Command arguments |
env | object | Environment variables |
cwd | string | Working directory |
timeout | number | Server timeout |
Transport Types
stdio (Default)
json
{
"my-server": {
"command": "npx",
"args": ["-y", "@org/mcp-server"]
}
}SSE
json
{
"remote": {
"transport": "sse",
"url": "https://example.com/mcp/sse",
"headers": {
"Authorization": "Bearer token"
}
}
}HTTP
json
{
"http-server": {
"transport": "http",
"url": "https://example.com/mcp"
}
}Popular MCP Servers
| Server | Package | Description |
|---|---|---|
| Filesystem | @anthropic/mcp-server-filesystem | File operations |
| Memory | @anthropic/mcp-server-memory | Knowledge graph |
| Fetch | @anthropic/mcp-server-fetch | HTTP requests |
| GitHub | @anthropic/mcp-server-github | GitHub API |
| Puppeteer | @anthropic/mcp-server-puppeteer | Browser control |
Management Commands
txt
#mcp状态 # View MCP status
#mcp重连 # Reconnect servers
#ai重载配置 # Reload configurationWeb Panel
Manage MCP servers in Web Admin Panel:
- Go to MCP tab
- View server status
- Connect/disconnect servers
- Browse available tools