MCP ExplorerExplorer

Mcp Sse Client Server Docker

@dgallitellion a year ago
2 MIT
FreeCommunity
AI Systems
A simple implementation of MCP Client/Server architecture with HTTP SSE transport layer, dockerized.

Overview

What is Mcp Sse Client Server Docker

mcp-sse-client-server-docker is a simple implementation of the MCP Client/Server architecture utilizing HTTP Server-Sent Events (SSE) for communication, all packaged within Docker containers.

Use cases

Use cases include building a live chat application, implementing a real-time dashboard for monitoring data, or creating a question-answer system where users can query information dynamically.

How to use

To use mcp-sse-client-server-docker, first build the client and server Docker images using the provided Docker build commands. Then, run the server and client containers using the specified Docker run commands, ensuring to use the host network for proper communication.

Key features

Key features include a straightforward setup with Docker, real-time communication via HTTP SSE, and the ability to handle queries dynamically through the client interface.

Where to use

mcp-sse-client-server-docker can be used in web applications that require real-time data updates, such as chat applications, live notifications, or any system that benefits from a responsive client-server interaction.

Content

MCP Client/Server using HTTP SSE with Docker containers

Building client and server

docker build -t mcp-server:latest .
docker build -t mcp-client:latest .

Running the server

docker run -P --network host mcp-server:latest

Running the client

List tools:

docker run -P --network host mcp-client:latest

Get answer to a query:

docker run -P --network host mcp-client:latest "What is 99+201?"

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers