MCP-Server-Example
0
This project provides a practical guide to creating an MCP server using Microsoft's SDK in Python. It allows integration with LLMs and environments like Open WebUI, facilitating the consumption of defined tools.
🧠MCP Server with Python – Practical Tutorial
This repository demonstrates how to create an MCP (Model Context Protocol) server using the official Microsoft SDK in Python. The project showcases defining tools that can be consumed by LLMs like ChatGPT in environments such as Open WebUI.
🚀 Technologies Used
- Python 3.10+
- UV for environment and package management
- MCP SDK
- MCPO HTTP middleware and OpenAPI documentation
▶️ How to Run
1. Local Mode (stdio)
Ideal for local testing with the MCP CLI.
2. HTTP Mode with mcpo
for OpenAPI and OpenWebUI integration
Run as a RESTful API.
🤖 Integration with Open WebUI
Connect the server to Open WebUI or other LLM tools supporting the MCP protocol.
📢 Contributions
Pull requests are welcome for suggesting new tools or improving the tutorial.