mcp-server-python
If you are the rightful owner of mcp-server-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.
MCP (Model Context Protocol) is a framework that allows integration of custom tools into AI-assisted development environments.
MCP (Model Context Protocol) is a framework that allows you to integrate custom tools into AI-assisted development environments—such as Cursor AI. MCP servers expose functionality (like data retrieval or code analysis) so that an LLM-based IDE can call these tools on demand. This project demonstrates an MCP server built in Python that provides two basic tools. One tool, add, accepts two numbers and returns their sum, while the other, getApiKey, retrieves the API key from the environment (via the API_KEY variable).
Features
- MCP Integration: Exposes tool functionality to LLM-based IDEs.
- Addition Tool: Accepts two numeric parameters and returns their sum.
- Env Var Retrieval: Demonstrates how to load an example environment variable from the configuration file.
- CLI Support: Provides a command-line interface via mcp[cli] for easy local development and testing.
- Standard I/O Transport: Integrates with development environments using standard I/O for seamless communication.