
MCP Server-Client Example
by joebuildsstuff
Educational implementation of the Model Context Protocol using TypeScript, featuring a basic server-client communication loop.
What it does
This project serves as a foundational example of the Model Context Protocol (MCP) implementation. It connects a custom MCP server to a client via stdio transport, demonstrating how resources can be listed and read by an AI assistant.
Tools
list_resources: Provides a list of available resources on the server.read_resource: Retrieves the content of a specific resource (e.g., example.txt).
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-client": {
"command": "node",
"args": ["--loader", "ts-node/esm", "/path/to/mcp-server-client/src/index.ts"]
}
}
}
Supported hosts
- Claude Desktop
Quick install
npm installInformation
- Pricing
- free
- Published
- 5/2/2026
- stars






