mcp_server
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 henry@mcphub.com.
A complete Flask-based implementation of Model Context Protocol (MCP) for enhancing Large Language Model capabilities with external tools.
This repository demonstrates how to build a server that handles Model Context Protocol (MCP), a method for extending LLM capabilities through tool invocation directly in the model's text output. Unlike function calling, MCP places tool definitions directly in the context window and parses the model's natural language responses to identify tool usage.
Features
- Complete MCP Implementation: Full parsing, execution, and response handling
- Sample Tools: Weather and calculator tools with parameter validation
- Conversation Flow: Maintains context across multiple interactions
- Regex-Based Parsing: Flexible text parsing for tool invocations
- Flask API: REST API endpoints for chat integration
Tools
Weather Tool
Provides weather information based on location and unit parameters
Calculator Tool
Performs calculations based on mathematical expressions