demo-mcp-server-client-implementation
A demo implementation of a MCP server (consuming a dummy API) and basic client.
Documentation
Example MCP Server + Client Implementation
I wrote an article and created a video about MCPs and why they're useful in my opinion.
This demo project contains a backend service / API that's consumed by a MCP server which exposes it in a standardized way to MCP clients - like the example MCP client (a very simple AI chatbot) that's also part of this project.
Important: All three parts (service, server, client) rely on Node.js being able to execute TypeScript without a compilation step. Yes, modern Node.js can do that! Make sure you have Node.js 23.x or higher installed!
Configuration
Add a `.env` file inside the `client` folder (next to the `package.json` file there) and add the following content to it:
OPENAI_API_KEY=In each folder (`service`, `server`, `client`) run `npm install` to install required dependencies.
Running Service, MCP Server & MCP Client
For each part, navigate into the respective folder (`service`, `server` and `client`) and run `npm run dev` (with Node.js 23+). Keep each process running.
The "client" process is a simply AI chatbot using OpenAI behind the scenes. This chatbot has the custom MCP server "installed" - therefore, this AI chat application is able to store and retrieve custom information via the backend service created in the "service" folder.
Bugs are possible - it's just a basic demo implementation :-)
Frequently asked questions
What is demo-mcp-server-client-implementation?
demo-mcp-server-client-implementation is A demo implementation of a MCP server (consuming a dummy API) and basic client.
How do I install demo-mcp-server-client-implementation?
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 demo-mcp-server-client-implementation open source?
Yes — it is hosted on GitHub at https://github.com/mschwarzmueller/demo-mcp-server-client-implementation and has 30 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