MCP.so
登录

MCP Server Quickstart

@sohta3

基本信息

分类

其他

传输方式

stdio

作者

sohta3

关于 MCP Server Quickstart

暂无概览

#mcp-server#weather-api#server-quickstart

MCP Server Quickstart 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "weather-forecast": {
      "command": "node",
      "args": [
        "./build/index.js"
      ]
    }
  }
}

MCP Server Quickstart 工具

工具列表暂未提供

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

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

概览

What is mcp-server-quickstart?

mcp-server-quickstart is an example MCP server that retrieves weather information for the United States using the National Weather Service (NWS) API. It is designed as a hands‑on implementation for the Zenn article “MCPサーバー自作入門” (Getting Started with Building Your Own MCP Server) and is intended for developers learning to create MCP servers.

How to use mcp-server-quickstart?

Install dependencies with npm install, then build the server with npm run build. To use it in Cursor, add the following configuration to .cursor/mcp.json:

{
    "mcpServers": {
      "weather-forecast": {
        "command": "node",
        "args": ["./build/index.js"]
      }
    }
}

Key features of mcp-server-quickstart

  • Fetches weather forecasts by latitude/longitude
  • Uses the official National Weather Service API
  • Supports locations only within the United States
  • Simple installation and build process with npm
  • Ready‑to‑use Cursor integration via .cursor/mcp.json
  • Licensed under ISC

Use cases of mcp-server-quickstart

  • Learning how to build a custom MCP server step‑by‑step
  • Retrieving current weather forecasts for U.S. coordinates programmatically
  • Integrating weather data into an MCP‑compatible client like Cursor

常见问题

1

How do I set up mcp-server-quickstart in Cursor?

Add the server configuration block shown above to your `.cursor/mcp.json` file, pointing to the built `./build/index.js` script.

2

What API does mcp-server-quickstart use?

It uses the National Weather Service (NWS) API to obtain weather forecasts.

3

Does mcp-server-quickstart support locations outside the United States?

No, only locations within the United States are supported.

4

What are the prerequisites to run mcp-server-quickstart?

Node.js and npm are required. After cloning, run `npm install` then `npm run build` before starting the server.

5

How do I build the server from source?

Run `npm install` to install dependencies, then `npm run build` to compile the TypeScript code into JavaScript (output goes to `./build/index.js`).

评论

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