MCP ExplorerExplorer

Mcp Client Server Host Demo

@danwritecodeon 9 months ago
39 MIT
FreeCommunity
AI Systems
A quick pokemon demo to showcase MCP server, client, and host

Overview

What is Mcp Client Server Host Demo

mcp-client-server-host-demo is a demonstration project that showcases the integration of the Model Context Protocol (MCP) with Pokemon data, featuring an MCP server, client, and HTTP server.

Use cases

Use cases include showcasing MCP capabilities, developing applications that utilize Pokemon data, and integrating LLMs for enhanced interaction with Pokemon tools.

How to use

To use the demo, install the dependencies with ‘bun install’, then run the MCP client using ‘bun mcp_client.ts’, which will automatically launch the MCP server. For the HTTP server, set your OpenRouter API key and run ‘bun http_server.ts’. Access the server at http://localhost:3005.

Key features

Key features include an MCP server that provides Pokemon data and attack capabilities, an MCP client for interaction, and an HTTP server that allows integration with LLMs for executing Pokemon attacks.

Where to use

undefined

Content

Pokemon MCP Demo

A demo project showcasing the Model Context Protocol (MCP) integration with Pokemon data. This project includes:

  • An MCP server that provides Pokemon data and attack capabilities
  • An MCP client that interacts with the server
  • An HTTP server that allows LLMs to use Pokemon tools via OpenRouter

Installation

bun install

Running the Project

MCP Server and Client Demo

Run the client which automatically launches the MCP server:

bun mcp_client.ts

HTTP Server with LLM Integration

Set your OpenRouter API key and run the HTTP server:

export OPENROUTER_API_KEY=your_api_key_here
bun http_server.ts

Then access the server at http://localhost:3005:

  • /tools - List available tools
  • /attack - Execute a random Pokemon attack using LLM

This project uses Bun as its JavaScript runtime.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers