Client Demo

v1.0.0APIsstable

Streamable HTTP based MCP server and Client demo with auto registry, Dockerfile setup and env.

client-demomcpai-integration
Share:
21
Stars
0
Downloads
0
Weekly
0/5

What is Client Demo?

Client Demo is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to streamable http based mcp server and client demo with auto registry, dockerfile setup and env.

Streamable HTTP based MCP server and Client demo with auto registry, Dockerfile setup and env.

This server falls under the APIs and Developer Tools categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Streamable HTTP based MCP server and Client demo with auto r

Use Cases

Stream HTTP-based MCP servers with auto-registry and Dockerfile setup.
Demonstrate MCP client/server architecture with environment configuration.
S1LV3RJ1NX

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx client-demo

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Client Demo

The MCP Server Client Demo is a reference implementation that demonstrates how to build a production-ready, stateless MCP server with streamable HTTP transport using Python and the uv package manager, including an auto tool registry powered by a @mcp_tool decorator, Docker containerization via a Dockerfile.server, and a separate MCP client using the OpenAI SDK. It is designed for developers who want a concrete starting point for building their own MCP server that scales horizontally — rather than exposing domain-specific business tools, it shows the architecture patterns for tool registration, HTTP transport, and environment configuration. Teams adopt it as a scaffolding template when building new MCP servers for internal platform tooling.

Prerequisites

  • Python 3.10 or later
  • uv package manager (curl -LsSf https://astral.sh/uv/install.sh | sh)
  • Docker (optional, for containerized deployment)
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Clone the repository

Clone the demo repository to get the server, client, and Dockerfile source code.

git clone https://github.com/S1LV3RJ1NX/mcp-server-client-demo.git
cd mcp-server-client-demo
2

Install dependencies with uv

Run uv sync to install all Python dependencies defined in pyproject.toml and generate or update uv.lock.

curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync
3

Copy and configure environment variables

Copy the .env.sample template to .env and edit it to set any required values for your deployment.

cp .env.sample .env
# Edit .env to set your configuration values
4

Run the MCP server locally

Start the server using uv run. The server uses streamable HTTP transport and auto-registers tools decorated with @mcp_tool.

uv run python -m server
5

Or build and run with Docker

For containerized deployment, build the server image using the provided Dockerfile.server and run it with your environment variables.

docker build -f Dockerfile.server -t mcp-server-demo .
docker run --env-file .env -p 8000:8000 mcp-server-demo
6

Connect your MCP client

Point Claude Desktop or another MCP client at the running HTTP server. For local development the server will be at http://localhost:8000.

{
  "mcpServers": {
    "client-demo": {
      "command": "uv",
      "args": ["run", "python", "-m", "server"],
      "cwd": "/path/to/mcp-server-client-demo"
    }
  }
}

Client Demo Examples

Client configuration

Claude Desktop configuration to run the demo server locally using uv, pointing to the cloned repository directory.

{
  "mcpServers": {
    "client-demo": {
      "command": "uv",
      "args": ["run", "python", "-m", "server"],
      "cwd": "/path/to/mcp-server-client-demo"
    }
  }
}

Prompts to try

Example prompts to test the demo server's auto-registered tools and explore the architecture.

- "List all the tools available on this MCP server"
- "What tools are registered via the @mcp_tool decorator on this server?"
- "Call the demo tool and show me the response format"
- "Test the server's health endpoint and tell me if it's running correctly"

Troubleshooting Client Demo

uv sync fails or dependencies cannot be resolved

Ensure uv is installed and up to date (uv self update). Check that your Python version meets the minimum requirement in pyproject.toml. If the lockfile is stale, delete uv.lock and run 'uv sync' again.

Docker build fails with permission or file not found errors

Make sure you are in the repository root when running the docker build command and that Dockerfile.server exists there. Check that the .env file exists if the Dockerfile copies it during build.

Claude Desktop cannot connect to the server over HTTP

The demo uses streamable HTTP transport, which requires an MCP client that supports HTTP mode. Standard stdio-based config may not work. Consult the client/ subdirectory's README for the correct connection format for HTTP-based MCP clients.

Frequently Asked Questions about Client Demo

What is Client Demo?

Client Demo is a Model Context Protocol (MCP) server that streamable http based mcp server and client demo with auto registry, dockerfile setup and env. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Client Demo?

Follow the installation instructions on the Client Demo GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Client Demo?

Client Demo works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Client Demo free to use?

Yes, Client Demo is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More APIs MCP Servers

Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "client-demo": { "command": "npx", "args": ["-y", "client-demo"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Client Demo?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides