Node MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Node MCP Serverget weather in Tokyo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Node MCP Server
Small example MCP (Model Context Protocol) server that exposes a weather tool using the @modelcontextprotocol/sdk.
Overview
Provides a minimal Express-based HTTP server that connects an
McpServerto a Streamable HTTP transport.Exposes endpoints:
/mcp(MCP transport),/health,/status, and/.
Related MCP server: MCP Server Basic Example
Requirements
Node.js 18+ recommended
npm
Install
npm installRun
npm startServer listens on port 3000 by default.
Endpoints
GET /health— returnsOK.GET /status— returns a JSON status object.POST /mcp— Streamable HTTP MCP transport endpoint. The server expects clients to POST JSON-RPC messages.
Important: the Streamable HTTP transport expects clients to include the following headers for POSTs:
Content-Type: application/jsonAccept: application/json, text/event-stream
Example curl (initialize):
curl --location 'http://localhost:3000/mcp' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "getWeather_Tool",
"arguments": {
"location":"New York"
}
}
}'Notes
The project uses
@modelcontextprotocol/sdk(seepackage.json) and returns structured tool results. Tool callbacks must return objects matching the SDK's expected schema (not plain strings).If you see errors about Accept headers or tool result shapes, verify headers and that tool callbacks return an object with a
contentarray.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol compatible server that provides weather information for any city using Ollama's LLM capabilities through an exposed get-weather tool.1-
- FlicenseNot gradedqualityNot gradedmaintenanceA basic Model Context Protocol server implementation that demonstrates core MCP functionality including tools and resources. Provides weather alerts through the Weather API and serves as a learning example for MCP development.-
- AlicenseNot gradedqualityDmaintenanceA minimal Model Context Protocol server demo that exposes tools through HTTP API, including greeting, weather lookup, and HTTP request capabilities. Demonstrates MCP server implementation with stdio communication and HTTP gateway functionality.6 npmISC
- FlicenseCqualityCmaintenanceA minimal MCP server built with TypeScript exposing a single mocked weather tool over stdio transport.2-