MCP ExplorerExplorer

Mcp Demo Server

@fdmochoon a year ago
1 MIT
FreeCommunity
AI Systems
MCP demo server

Overview

What is Mcp Demo Server

mcp_demo_server is a demonstration server for the MCP framework, designed to showcase its capabilities and functionalities.

Use cases

Use cases include running development servers for testing applications, utilizing the MCP Inspector for debugging, and integrating MCP functionalities into desktop applications.

How to use

To use mcp_demo_server, initialize the environment with ‘uv init mcp-server-demo’, navigate into the directory, add the MCP CLI with ‘uv add “mcp[cli]”’, and run the server using ‘uv run mcp’.

Key features

Key features include the ability to run a MCP server with an integrated MCP Inspector, version display, and installation options for the MCP server in the Claude desktop app.

Where to use

mcp_demo_server can be used in software development environments, particularly for testing and demonstrating the MCP framework functionalities.

Content

MCP Server for NASA API integration.

NASA NEO API request by date

  • Near Earth Object information retrieval by date

Clone repo and run:

uv install

Add you mcp server config to your LLM

Example Claude config file (claude_desktop_config.json)

{
    "mcpServers": {
        "nasa": {
            "command": "uv",
                "args": [
                    "--directory",
                    "<PATH TO YOUR PY>",
                    "run",
                    "main.py"
                ]
        }
    }
}

Tools:

getNeo()

{
  "method": "tools/call",
  "params": {
    "name": "getNeo",
    "arguments": {
      "start_date": "<START_DATE>",
      "end_date": "<END_DATE>"
    },
    "_meta": {
      "progressToken": 0
    }
  }
}

Other instructions (uv examples)

Create environment

uv init mcp-server-demo

cd mcp-server-demo

uv add "mcp[cli]"

uv run mcp

Usage: mcp [OPTIONS] COMMAND [ARGS]

MCP development tools

  • Options

–help

Commands

version > Show the MCP version

dev > Run a MCP server with the MCP Inspector

run > Run a MCP Server

install > Install a MCP server in the Claude desktop app

Example (open MCP dev Inspector):

uv run mcp dev <MYPYTHONFILE>

# Example output:
Starting MCP inspector...
⚙️ Proxy server listening on port <PORT>
🔍 MCP Inspector is up and running at http://127.0.0.1:<PORT> 🚀

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers