Simple-MCP-Server-with-Python
If you are the rightful owner of Simple-MCP-Server-with-Python 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.
The Model Context Protocol (MCP) is a standardized way to supply context to large language models (LLMs).
The Model Context Protocol (MCP) standardizes the interface between applications and LLMs, allowing for the separation of concerns in providing context, executing code, and managing user interactions. The MCP Python SDK implements the full MCP specification, enabling developers to expose resources, define tools, and create prompts for LLM applications. This tutorial guides you through building a simple MCP server in Python, which exposes data, functionality, and interaction templates to LLMs in a secure and modular fashion. The server can advertise its capabilities, allowing clients to adapt dynamically. The tutorial covers setting up the environment, creating the server, and testing it using the MCP Inspector.
Features
- Expose Resources: Deliver data to LLMs similar to GET endpoints.
- Define Tools: Provide functionality that performs actions or computations like POST endpoints.
- Create Prompts: Offer reusable, templated interactions.
- Dynamic Capability Advertisement: Clients can adapt based on server's advertised features.
- MCP Inspector: A web-based UI for testing and interacting with MCP servers.
Tools
add tool
Perform addition of two numbers
greeting resources
Generate personalized greetings based on the provided name
review_code prompt
Provide interactive templates for code review