Skip to content

MCP Server Integration External

Integrate external MCP servers for extended capabilities.

Overview

External MCP servers provide additional tools via the MCP protocol.

Configuration

Edit data/mcp-servers.json:

json
{
  "servers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem", "/path/to/dir"]
    },
    "memory": {
      "command": "npx", 
      "args": ["-y", "@anthropic/mcp-server-memory"]
    }
  }
}

Transport Types

stdio (npm packages)

json
{
  "my-server": {
    "command": "npx",
    "args": ["-y", "@org/mcp-server-name"],
    "env": {
      "API_KEY": "xxx"
    }
  }
}

SSE (Remote Server)

json
{
  "remote-server": {
    "transport": "sse",
    "url": "https://example.com/mcp/sse"
  }
}

HTTP

json
{
  "http-server": {
    "transport": "http",
    "url": "https://example.com/mcp"
  }
}

Available MCP Servers

ServerPackageDescription
Filesystem@anthropic/mcp-server-filesystemFile operations
Memory@anthropic/mcp-server-memoryKnowledge graph
Fetch@anthropic/mcp-server-fetchWeb fetching
GitHub@anthropic/mcp-server-githubGitHub API
Puppeteer@anthropic/mcp-server-puppeteerBrowser automation

Management Commands

txt
#mcp状态          # View MCP server status
#ai重载配置       # Reload configuration

Web Panel

Manage MCP servers in Web Admin Panel:

  1. Go to MCP tab
  2. View connected servers
  3. Enable/disable servers
  4. Check tool availability

Troubleshooting

IssueSolution
Server not connectingCheck npm package is installed
Tools not showingVerify server is enabled
Timeout errorsIncrease timeout in config

Debug Mode

Enable debug mode to see detailed MCP logs:

txt
#ai调试开启

Next Steps

Released under the MIT License