typescript-mcp-client-server
MCP Client & Server
Documentation
MCP Weather Client & Server Example with Typescript
This is a tutorial project demonstrating the use of the Model Context Protocol (MCP) with Anthropic's Claude models. The app includes a simple CLI-based client and a weather tools server, which communicates via MCP over stdio.
Features
- ๐ MCP-compliant server exposing tools like `get-alerts` and `get-forecast`
- ๐ค CLI client using Anthropic Claude (via the `@anthropic-ai/sdk`) to call tools
- ๐ ๏ธ Written in TypeScript for the client and server
- ๐ฆ๏ธ Example tools provide weather alert and forecast info
- ๐ Supports `.env` configuration with `ANTHROPIC_API_KEY`
Getting Started
Prerequisites
- Node.js v20+
- An Anthropic API key
- NOTE: You will need credits added
Running
- In `client`: `npm install && npm run build`
- In `server`: `npm install && npm run build`
- In `client`: `node build/index.js ../server/build/index.js`
Frequently asked questions
What is typescript-mcp-client-server?
typescript-mcp-client-server is MCP Client & Server
How do I install typescript-mcp-client-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is typescript-mcp-client-server open source?
Yes โ it is hosted on GitHub at https://github.com/ijshd7/typescript-mcp-client-server and has 1 stars.
Related MCP tools
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic TypeScript-based implementation.
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices) TypeScript-based implementation.
Https://github.com/user-attachments/assets/364b6705-14d4-4e6d-bea7-fb9f12664fab for the Model Context Protocol. Enhance AI assistants with powerful integrations
MCP server that provides tools and resources for interacting with n8n API TypeScript-based implementation. Trusted by 1400+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP