MCP协议服务器

一个基于Node.js的Model Context Protocol服务器实现,提供示例工具。

  • by guillermocorrea
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 guillermocorrea/mcp-node-server

使用说明

🤖 MCP节点服务器

Node.js MCP服务器。

📓 描述

该项目通过示例工具为模型上下文协议提供了一个服务器实现。

⬇️ 安装

# Clone the repository
git clone https://github.com/guillermocorrea/mcp-node-server.git

# Navigate to the project directory
cd mcp-node-server

# Install dependencies
npm install

👨‍💻 配置

更新到的绝对路径 main.ts 文件在 .vscode\mcp.json.

🚀 测试

VSCODE

在代理模式下打开副驾驶聊天,它会发现工具。

示例提示:

What is the weather in Bogota?

@模型上下文协议/检查器

npx -y @modelcontextprotocol/inspector npx -y tsx main.ts