MCP是什么MCPModel Context Protocol 模型上下文协议是由Anthropic推出的一项开放标准主要是为大预言模型和AI助手提供一个统一、标准化的接口、使AI能够轻松操作外部工具并完成更复杂的任务。MCP的作用AI处理的数据只能基于预训练数据或者上传的数据知识库数据有限就算很强大的AI模型也会有数据隔离的问题无法直接访问在线数据。MCP解决了这个问题突破了模型对静态知识库的依赖使其具备更强大的动态交互能力能够像人类一样调用搜索引擎、访问本地文件、链接API服务甚至直接操作第三方库。推荐Claude Code、Codex的6个关键MCP可理解为增强功能的插件让其从单纯的写代码AI升级为强大的AI开发工作台。playwright用于浏览器操作可让Claude Code、Codex自动完成打开网页、点击按钮、填写表单、检查报错等操作助力前端测试等场景。安装claude mcpaddplaywright\-- npx-yplaywright/mcplatestMCP配置{mcpServers:{playwright:{command:npx,args:[-y,playwright/mcplatest]}}}GitHub地址https://github.com/microsoft/playwright-mcpfilesystem用于本地项目理解能让Claude Code、Codex读取和管理本地文件理解项目结构查找入口文件、查看配置、分析依赖关系。安装claude mcpaddfilesystem\-- npx-ymodelcontextprotocol/server-filesystem.MCP配置{mcpServers:{filesystem:{command:npx,args:[-y,modelcontextprotocol/server-filesystem,/你的/项目/绝对路径]}}}GitHub地址https://github.com/modelcontextprotocol/servers/tree/main/src/filesystemsequential-thinking用于复杂推理面对如BUG排查等复杂问题可将其拆分为确认现象、提出假设、逐个排查的步骤像有经验的工程师一样分析问题。安装claude mcpaddsequential-thinking\-- npx-ymodelcontextprotocol/server-sequential-thinkingMCP配置{mcpServers:{sequential-thinking:{command:npx,args:[-y,modelcontextprotocol/server-sequential-thinking]}}}GitHub地址https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinkingcontext7用于获取最新文档防止AI使用过时的框架、SDK、API写法可查询Next.js、React、Prisma、Supabase等工具的最新官方文档提升代码准确率。安装claude mcpaddcontext7\-- npx-yupstash/context7-mcplatestMCP配置{mcpServers:{context7:{command:npx,args:[-y,context7-mcp]}}}GitHub地址https://github.com/nicholasgriffintn/context7-mcpgithub用于协作流程能让Claude Code、Codex读取issue、查看PR、分析commit理解协作上下文助力真实开发流程中的需求理解、代码修改、PR准备等工作。安装claude mcpaddgithub\-eGITHUB_TOKEN你的Token\-- npx-ymodelcontextprotocol/server-githubMCP配置{mcpServers:{github:{command:npx,args:[-y,modelcontextprotocol/server-github],env:{GITHUB_TOKEN:ghp_xxxxxxxxx}}}}GitHub地址https://github.com/github/github-mcp-servermemos用于长期记忆可让Claude Code、Codex记住项目偏好、代码规范、常用工作流、避坑经验等长期信息成为熟悉项目的长期搭档。安装claude mcpaddmemory\-eMEMORY_FILE_PATH./.claude/memory.json\-- npx-ymodelcontextprotocol/server-memoryMCP配置{mcpServers:{memory:{command:npx,args:[-y,modelcontextprotocol/server-memory]}}}GitHub地址https://github.com/modelcontextprotocol/servers/tree/main/src/memory
火爆了!Codex和Claude Code必装的6个MCP,附GitHub地址
MCP是什么MCPModel Context Protocol 模型上下文协议是由Anthropic推出的一项开放标准主要是为大预言模型和AI助手提供一个统一、标准化的接口、使AI能够轻松操作外部工具并完成更复杂的任务。MCP的作用AI处理的数据只能基于预训练数据或者上传的数据知识库数据有限就算很强大的AI模型也会有数据隔离的问题无法直接访问在线数据。MCP解决了这个问题突破了模型对静态知识库的依赖使其具备更强大的动态交互能力能够像人类一样调用搜索引擎、访问本地文件、链接API服务甚至直接操作第三方库。推荐Claude Code、Codex的6个关键MCP可理解为增强功能的插件让其从单纯的写代码AI升级为强大的AI开发工作台。playwright用于浏览器操作可让Claude Code、Codex自动完成打开网页、点击按钮、填写表单、检查报错等操作助力前端测试等场景。安装claude mcpaddplaywright\-- npx-yplaywright/mcplatestMCP配置{mcpServers:{playwright:{command:npx,args:[-y,playwright/mcplatest]}}}GitHub地址https://github.com/microsoft/playwright-mcpfilesystem用于本地项目理解能让Claude Code、Codex读取和管理本地文件理解项目结构查找入口文件、查看配置、分析依赖关系。安装claude mcpaddfilesystem\-- npx-ymodelcontextprotocol/server-filesystem.MCP配置{mcpServers:{filesystem:{command:npx,args:[-y,modelcontextprotocol/server-filesystem,/你的/项目/绝对路径]}}}GitHub地址https://github.com/modelcontextprotocol/servers/tree/main/src/filesystemsequential-thinking用于复杂推理面对如BUG排查等复杂问题可将其拆分为确认现象、提出假设、逐个排查的步骤像有经验的工程师一样分析问题。安装claude mcpaddsequential-thinking\-- npx-ymodelcontextprotocol/server-sequential-thinkingMCP配置{mcpServers:{sequential-thinking:{command:npx,args:[-y,modelcontextprotocol/server-sequential-thinking]}}}GitHub地址https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinkingcontext7用于获取最新文档防止AI使用过时的框架、SDK、API写法可查询Next.js、React、Prisma、Supabase等工具的最新官方文档提升代码准确率。安装claude mcpaddcontext7\-- npx-yupstash/context7-mcplatestMCP配置{mcpServers:{context7:{command:npx,args:[-y,context7-mcp]}}}GitHub地址https://github.com/nicholasgriffintn/context7-mcpgithub用于协作流程能让Claude Code、Codex读取issue、查看PR、分析commit理解协作上下文助力真实开发流程中的需求理解、代码修改、PR准备等工作。安装claude mcpaddgithub\-eGITHUB_TOKEN你的Token\-- npx-ymodelcontextprotocol/server-githubMCP配置{mcpServers:{github:{command:npx,args:[-y,modelcontextprotocol/server-github],env:{GITHUB_TOKEN:ghp_xxxxxxxxx}}}}GitHub地址https://github.com/github/github-mcp-servermemos用于长期记忆可让Claude Code、Codex记住项目偏好、代码规范、常用工作流、避坑经验等长期信息成为熟悉项目的长期搭档。安装claude mcpaddmemory\-eMEMORY_FILE_PATH./.claude/memory.json\-- npx-ymodelcontextprotocol/server-memoryMCP配置{mcpServers:{memory:{command:npx,args:[-y,modelcontextprotocol/server-memory]}}}GitHub地址https://github.com/modelcontextprotocol/servers/tree/main/src/memory