MCPInstall
mcp-server-client logo

mcp-server-client

by luan-vieira-er luan-vieira-er/mcp-server-client

The mcp-server-client is a demonstration project utilizing the Model Context Protocol (MCP) for seamless integration of AI capabilities. It features a client-host-server architecture, stateful session management, and JSON-RPC support, ensuring secure context exchange and sampling coordination across multiple client instances.

READMEmain

MCP Server & Client

A demonstration project to build a simple server and client using the MCP Open Standard.


About

The Model Context Protocol (MCP) follows a client-host-server architecture where each host can run multiple client instances. This architecture enables users to integrate AI capabilities across applications while maintaining clear security boundaries and isolating concerns. Built on JSON-RPC, MCP provides a stateful session protocol focused on context exchange and sampling coordination between clients and servers.

MCP Architecture

Install

To install and execute the project, follow the steps below:

git clone https://github.com/luan-vieira-er/mcp-server-client.git
cd mcp-server-client
npm install
npm run server # Test the server
npm run client # Start the client