Skip to main content
Glama
satty1987

Node MCP Server

by satty1987

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 McpServer to 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 install

Run

npm start

Server listens on port 3000 by default.

Endpoints

  • GET /health — returns OK.

  • 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/json

  • Accept: 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 (see package.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 content array.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A 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.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    10
    ISC
  • F
    license
    C
    quality
    C
    maintenance
    A minimal MCP server built with TypeScript exposing a single mocked weather tool over stdio transport.
    2
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/satty1987/mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server