Skip to main content
Glama
AndresNinou

Hello World MCP Server

by AndresNinou

Hello World MCP Server

A simple Model Context Protocol (MCP) server that demonstrates basic functionality using FastMCP and uv for dependency management.

Features

This MCP server provides:

Tools

  • say_hello(name): Returns a greeting message for the specified name (defaults to "World")

  • get_server_info(): Returns information about the server including version and capabilities

Resources

  • hello://greeting: A simple hello world message

  • hello://info: Server information including creation details

Requirements

  • Python >=3.10

  • uv (for dependency management)

Installation

  1. Clone or download this project

  2. Install dependencies using uv:

    uv sync

Usage

Running the MCP Server

To start the MCP server:

uv run python -m test_mcp.server

The server will start in STDIO mode, ready to accept MCP client connections.

Testing the Server

Run the test script to verify functionality:

uv run python test_server.py

Development

The project structure:

test_mcp/
├── test_mcp/
│   ├── __init__.py
│   └── server.py          # Main MCP server implementation
├── test_server.py         # Test script
├── pyproject.toml         # Project configuration and dependencies
├── .python-version        # Python version (3.10)
└── README.md             # This file

Dependencies

  • fastmcp: Modern Python framework for building MCP servers

  • Managed with uv for fast, reliable dependency resolution

License

This is a demo project for learning MCP server development.

-
security - not tested
-
license - not tested
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AndresNinou/test_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server