MCP-Server
Click on "Install 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., "@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.
MCP-Server
A minimal Model Context Protocol (MCP) server built with TypeScript. It exposes a single tool, get_weather, over a stdio transport so that MCP-compatible clients (Claude Desktop, Claude Code, the MCP Inspector, etc.) can call it.
Features
Built on
@modelcontextprotocol/sdkInput validation via
zodCommunicates over stdio (JSON-RPC)
One example tool:
get_weather
Related MCP server: MCP Demo Server
Prerequisites
Node.js (v18+ recommended)
Yarn (v1 classic or Berry)
Installation
yarn installBuild
Compiles the TypeScript source in src/ to JavaScript in build/:
yarn buildThis runs tsc and marks build/index.js as executable.
Running
Start the server directly (for a quick smoke test — it will sit silently listening on stdio, which is expected):
yarn startStart with the MCP Inspector (recommended for interactive testing/debugging):
yarn start:localThis launches a local web UI (usually at http://localhost:6274) where you can view the registered tools, call them with test inputs, and inspect the raw JSON-RPC traffic.
If running the Inspector through a Yarn script causes connection issues, run it directly instead:
npx @modelcontextprotocol/inspector node build/index.js
Available Tools
get_weather
Returns a (currently mocked) weather reading for a given city.
Input:
Parameter | Type | Description |
| string | Name of the city |
Example output:
The weather in Chandigarh is 24°C and sunny.Note: this is a stub implementation returning a random temperature. Replace the logic inside
registerTool("get_weather", ...)insrc/index.tswith a real weather API call as needed.
Connecting to an MCP Client
To use this server with Claude Desktop or another MCP client, add it to the client's config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"MCP-Server": {
"command": "node",
"args": ["/absolute/path/to/MCP-Server/build/index.js"]
}
}
}Restart the client afterward — the get_weather tool should appear as available.
Project Structure
.
├── src/
│ └── index.ts # Server entry point + tool definitions
├── build/ # Compiled output (generated by `yarn build`)
├── package.json
├── tsconfig.json
└── README.mdExtending
To add more tools, call server.registerTool(...) again inside src/index.ts with a new name, schema, and handler. For larger projects, consider splitting each tool into its own file under src/tools/ and importing them into index.ts.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Flicense-qualityDmaintenanceA demonstration MCP server built in TypeScript that shows how to implement stdio-based communication for integration with MCP clients. Serves as a template for building custom MCP servers with strong typing and maintainability.
- Alicense-qualityDmaintenanceModel Context Protocol (MCP) server implementation demonstrating production-ready patterns in TypeScript, with tools for calculation, weather, and filesystem access.1MIT
- Alicense-qualityDmaintenanceA minimal starter template for building Model Context Protocol (MCP) servers using TypeScript and FastMCP, including an example weather tool for demonstration.101ISC
- Alicense-qualityBmaintenanceAn MCP server that offers arithmetic operations (addition and division) and current weather data from OpenWeatherMap. It serves as a learning project for building MCP servers with Node.js and TypeScript, supporting both stdio and Streamable HTTP transports.7ISC
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
A basic MCP server to operate on the Postman API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/vikrantkalyan23/typescript-mcp-tool-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server