MCP s-
This repo has my learnings on how to create an MCP-Server
claude mcp add --transport stdio krishcodesw-mcp-servers- node main.js
How to use
This MCP server is a starter example that demonstrates how to create an MCP server focused on Weather data. The main.js file implements a local, offline server using a STDIO transport, meaning it can operate without network access. It provides a simple context for weather-related data, which you can extend by integrating real APIs later. By default, you can run this server locally and communicate with it through the MCP framework's tooling. If you want online access, you can adapt the project to expose an SSE endpoint with an Express server, enabling remote consumption of weather data while keeping the core logic in the local STDIO-based server.
How to install
Prerequisites:
- Node.js (LTS)
- npm or yarn
Installation steps:
- Clone or download the repository containing main.js (the starter MCP server).
- Open a terminal and navigate to the project directory.
- Install dependencies (if any):
- npm install
- or yarn install
- Run the server:
- node main.js
Notes:
- Since this is a starter with offline STDIO transport, no external APIs are required initially.
- To enable online access, integrate an Express server and SSE endpoint, then route weather data through that interface.
Additional notes
Tips:
- The server operates via STDIO transport for offline usage. If you plan to deploy online, consider wiring an SSE endpoint with Express to serve data over HTTP.
- You can modify main.js to fetch real weather data from external APIs and return it via the MCP interface.
- If you encounter issues with missing dependencies, ensure Node.js versions are compatible and that dependencies listed in package.json (if present) are installed.
- For production, you may want to containerize the server or adapt the configuration to run under a process manager. Environment variables to consider:
- WEATHER_API_KEY: if you add external weather API integration
- MCP_TRANSPORT: transport type (e.g., stdio, sse) if you support multiple transports
- DEBUG: enable verbose logging (true/false)
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.