MCP 是一个开放协议,让 Claude 连接外部工具和数据源。通过 MCP,Claude 能访问数据库、GitHub、浏览器等。
配置方法
claude mcp add github npx @anthropic-ai/mcp-server-github
常用 MCP 服务器
@anthropic-ai/mcp-server-github— GitHub 集成@anthropic-ai/mcp-server-filesystem— 增强文件操作@anthropic-ai/mcp-server-postgres— PostgreSQL 访问@anthropic-ai/mcp-server-playwright— 浏览器自动化
提示:每个 MCP 服务器会消耗上下文,使用
/context 监控用量