MCP.so
登录

MCP Server Example

@ivanbtrujillo

基本信息

分类

其他

传输方式

stdio

作者

ivanbtrujillo

关于 MCP Server Example

Basic MCP Server

MCP Server Example 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Server Example 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server Example?

MCP Server Example is a basic, template MCP (Model Context Protocol) server designed to be used with Cursor or other MCP‑compatible tools. It provides a starting point for developers to add their own tools and integrate with AI agents.

How to use MCP Server Example?

Modify index.ts to add your own tools, then build the project with pnpm run build and run it with pnpm run start. Add a .cursor/mcp.json file in your project with the server configuration (pointing to the built build/index.js), enable the MCP server in Cursor Settings, switch to Agent mode with claude-3.7-sonnet, and then query the weather to test the default tools.

Key features of MCP Server Example

  • Simple, customizable MCP server template
  • Ready to use with Cursor and other tools
  • Default weather tool included for demonstration
  • Build and run with pnpm commands
  • Easy configuration via .cursor/mcp.json

Use cases of MCP Server Example

  • Prototyping MCP‑based tools for AI agents
  • Learning how to set up and configure an MCP server
  • Integrating weather data into Cursor chat via Agent mode

常见问题

1

How do I add custom tools?

Modify `index.ts` and add any tools you want, then rebuild the project.

2

How do I build and run the server?

Run `pnpm run build` to compile, then `pnpm run start` to start the server.

3

What runtime is required?

The server runs on Node.js, as indicated by the `"node"` command in the configuration.

4

How do I connect it to Cursor?

Add a `.cursor/mcp.json` file in your project with the server’s command and args, then enable the MCP server in Cursor Settings.

评论

其他 分类下的更多 MCP 服务器