Simple MCP Server
Enables AI tools to query context from a local JSON data source via stdio, demonstrating the Model Context Protocol.
README
Simple MCP with Node.js & TypeScript
This project is a minimal, educational implementation of a Model Context Protocol (MCP)βstyle system using Node.js and TypeScript. It demonstrates how a client and server can communicate over standard input/output (stdio) using structured messages, simulating how modern AI tools interact with external context providers.
The project was built using VS Code with GitHub Copilot, exploring how AI-assisted development integrates with protocol-based system design.
π What This Project Demonstrates
- A lightweight MCP-style clientβserver architecture
- Communication over stdio instead of HTTP
- Structured request/response handling
- Type-safe development with TypeScript
- Local JSON-based data access
- Practical experimentation with AI tooling workflows
This repository focuses on clarity over complexity, making it ideal for learning, experimentation, and extension.
π§ Architecture Overview
Client (client.ts)
|
| stdio messages
v
Server (server.ts)
|
| Reads local data
v
users.json
- Client sends structured requests
- Server processes requests and responds via stdio
- users.json acts as a mock data source
- mcp.json defines how the MCP server is launched and integrated
π Project Structure
βββ client.ts # MCP client implementation
βββ server.ts # MCP server implementation
βββ users.json # Sample data source
βββ mcp.json # MCP server configuration
βββ package.json
βββ package-lock.json
βββ README.md
βοΈ How It Works
- The MCP server is launched using Node.js (configured in
mcp.json) - The client communicates with the server via stdio
- Requests are parsed and handled in a structured manner
- The server reads from
users.jsonand returns results - Responses are sent back to the client in a predictable format
This mirrors how AI tools query external systems for context without relying on traditional REST APIs.
βΆοΈ Running the Project
Install dependencies
npm install
npm run build
node build/server.js
(Client execution depends on your MCP setup or test harness.)
π§ͺ Why This Matters
Modern AI systems increasingly rely on protocol-driven context sharing rather than monolithic APIs. This project provides a hands-on foundation for understanding:
- AI tool integrations
- Context-aware systems
- Protocol-oriented backend design
- Developer tooling workflows
π Notes
- This is a learning and exploration project
- Designed to be easily extended (databases, auth, tools, schemas)
- Emphasizes readability and correctness over feature depth
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.