MCP Client Server Host Demo

v1.0.0Developer Toolsstable

A quick pokemon demo to showcase MCP server, client, and host

mcp-client-server-host-demomcpai-integration
Share:
39
Stars
0
Downloads
0
Weekly
0/5

What is MCP Client Server Host Demo?

MCP Client Server Host Demo is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to quick pokemon demo to showcase mcp server, client, and host

A quick pokemon demo to showcase MCP server, client, and host

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

Features

  • A quick pokemon demo to showcase MCP server, client, and hos

Use Cases

Demonstrate MCP server, client, and host architecture with a sample Pokémon application.
danwritecode

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 14, 2025
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-client-server-host-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 MCP Client Server Host Demo

The MCP Client Server Host Demo is a hands-on educational project that illustrates the three-layer architecture of the Model Context Protocol using a Pokémon-themed example application. It includes a standalone MCP server providing Pokémon data and attack tools, a TypeScript MCP client that connects to it programmatically, and an HTTP host server that lets LLMs invoke Pokémon tools via the OpenRouter API. Developers learning MCP use it to understand how servers expose tools, how clients discover and call them, and how a host orchestrates everything with an LLM.

Prerequisites

  • Bun runtime installed (https://bun.sh)
  • An OpenRouter API key for the LLM integration HTTP server
  • Git for cloning the repository
  • Basic familiarity with TypeScript and the MCP protocol
1

Clone the repository

Clone the demo project to your local machine.

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

Install dependencies with Bun

Install all project dependencies using the Bun package manager.

bun install
3

Run the MCP client and server demo

This launches the MCP client, which automatically starts the MCP server as a subprocess. Watch the console to see the client discover tools and call them.

bun mcp_client.ts
4

Set your OpenRouter API key

To run the HTTP host server with LLM integration, export your OpenRouter API key.

export OPENROUTER_API_KEY=your_api_key_here
5

Start the HTTP host server

Run the HTTP server, which listens on port 3005 and allows LLMs to invoke Pokémon tools through the /attack endpoint.

bun http_server.ts
6

Test the endpoints

With the server running, hit the available endpoints to list tools or trigger an LLM-driven Pokémon attack.

curl http://localhost:3005/tools
curl http://localhost:3005/attack

MCP Client Server Host Demo Examples

Client configuration

Example of running the MCP server locally for client/host demos (no persistent MCP client config required — the client is embedded in the demo).

{
  "mcpServers": {
    "pokemon-demo": {
      "command": "bun",
      "args": ["mcp_server.ts"],
      "env": {}
    }
  }
}

Prompts to try

These commands and prompts exercise the demo's Pokémon MCP tools via the HTTP host.

- "GET http://localhost:3005/tools — list all Pokémon tools the MCP server exposes"
- "GET http://localhost:3005/attack — let the LLM pick a random Pokémon attack and execute it"
- "Modify http_server.ts to add a /battle endpoint that pits two Pokémon against each other."
- "Trace through mcp_client.ts to explain how tool discovery works in MCP."

Troubleshooting MCP Client Server Host Demo

bun: command not found

Install Bun by running: curl -fsSL https://bun.sh/install | bash. Then restart your terminal and verify with 'bun --version'.

/attack endpoint returns an authentication error

Make sure OPENROUTER_API_KEY is exported in the same shell session where you run bun http_server.ts. Verify the key is valid at https://openrouter.ai/keys.

Client cannot connect to the MCP server

The client launches the server automatically as a subprocess — do not start the server separately. If the connection fails, check that the mcp_server.ts file path is correct and that no port conflicts exist.

Frequently Asked Questions about MCP Client Server Host Demo

What is MCP Client Server Host Demo?

MCP Client Server Host Demo is a Model Context Protocol (MCP) server that quick pokemon demo to showcase mcp server, client, and host It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP Client Server Host Demo?

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

Which AI clients work with MCP Client Server Host Demo?

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

Is MCP Client Server Host Demo free to use?

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

Browse More Developer Tools MCP Servers

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

Quick Config Preview

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

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

Read the full setup guide →

Ready to use MCP Client Server Host 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