MCP-Server-Example

MCP-Server-Example

3.2

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

This repository demonstrates how to create a Model Context Protocol (MCP) server using Microsoft's official SDK in Python.

The MCP server tutorial provides a comprehensive guide to setting up a Model Context Protocol server using Python. It leverages the official MCP SDK by Microsoft to define tools that can be consumed by Language Learning Models (LLMs) such as ChatGPT. The project is designed to work seamlessly with environments like Open WebUI, offering a practical approach to integrating MCP with various platforms. The tutorial includes steps for setting up the environment, installing necessary packages, and running the server in different modes. It also highlights the importance of well-documented functions using docstrings, which enhance the usability of the server with LLMs by providing clear and concise descriptions of each tool's functionality.

Features

  • Python 3.10+ compatibility
  • Integration with Open WebUI
  • Interactive OpenAPI documentation
  • Local and HTTP server execution modes
  • Tool definition using @tool decorator

Tools

  1. get_tutorial_summary

    Return to the MCP Server Tutorial Summary

  2. somar

    Add two integers