mcp-server

yuxiaoli/mcp-server

3.2

If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

This is a simple Model Context Protocol (MCP) server built with `fastmcp`.

Tools
1
Resources
0
Prompts
0

Hello MCP Server

This is a simple Model Context Protocol (MCP) server built with fastmcp. It serves as a tutorial project to demonstrate how to create and deploy an MCP server.

Features

  • FastMCP Integration: Built using the fastmcp library for efficient MCP server development.
  • HTTP Transport: Configured to run with streamable-http transport.
  • Demonstration Tool: Includes a sample tool to showcase MCP capabilities.

Prerequisites

  • Python 3.10 or higher
  • Poetry for dependency management

Installation

  1. Clone the repository (if applicable).

  2. Install dependencies using Poetry:

    poetry install
    

Usage

To start the MCP server, run the following command:

poetry run python src/mcp_server/main.py

The server will start listening on http://0.0.0.0:3000.

Available Tools

welcome

A simple tool that generates a welcome message.

  • Description: Return a friendly welcome message for the user.
  • Arguments:
    • name (str): Name of the user.
  • Returns: A string containing the welcome message.

Project Structure

mcp-server/
├── refs/               # Reference materials (tutorials, etc.)
├── src/
│   └── mcp_server/
│       ├── __init__.py
│       └── main.py     # Server entry point and tool definitions
├── .env                # Environment variables
├── poetry.lock         # Locked dependencies
├── pyproject.toml      # Project configuration and dependencies
└── README.md           # Project documentation

References