MCP-Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP-Servercalculate 15 * 3"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-Server
Simple MCP (Model Context Protocol) server with a Flask-based web GUI
Overview
This is a simple MCP server implementation that exposes various tools through a web-based GUI. The server includes several example tools that demonstrate different functionalities:
calculate: Perform basic mathematical operations (add, subtract, multiply, divide)
text_analyzer: Analyze text and provide statistics (word count, character count, etc.)
timestamp: Get current timestamp in various formats
string_transform: Transform strings (uppercase, lowercase, reverse, title case)
fibonacci: Generate Fibonacci sequence
Related MCP server: Simple MCP Server
Installation
Clone this repository:
git clone https://github.com/thedcfix/MCP-Server.git
cd MCP-ServerInstall dependencies:
pip install -r requirements.txtUsage
Start the Flask server:
python app.pyOpen your web browser and navigate to:
http://localhost:5000The GUI will display:
Server information and statistics
List of all available tools with their descriptions and parameters
A test section where you can execute tools with custom parameters
API Endpoints
The server exposes the following REST API endpoints:
GET /- Web GUI interfaceGET /api/tools- List all available toolsGET /api/server-info- Get server informationPOST /api/execute- Execute a tool with parameters
Example API Usage
# List all tools
curl http://localhost:5000/api/tools
# Execute the calculate tool
curl -X POST http://localhost:5000/api/execute \
-H "Content-Type: application/json" \
-d '{"tool_name": "calculate", "parameters": {"operation": "add", "a": 10, "b": 5}}'
# Analyze text
curl -X POST http://localhost:5000/api/execute \
-H "Content-Type: application/json" \
-d '{"tool_name": "text_analyzer", "parameters": {"text": "Hello world!"}}'Project Structure
MCP-Server/
├── app.py # Flask web application
├── mcp_server.py # MCP server implementation with tools
├── templates/
│ └── index.html # Web GUI template
├── requirements.txt # Python dependencies
└── README.md # This fileAdding New Tools
To add a new tool to the MCP server:
Open
mcp_server.pyAdd a new method to handle the tool (e.g.,
_my_tool)Register the tool in the
_register_tools()method with its metadataThe tool will automatically appear in the web GUI
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
Read-only developer, date, finance, and text utilities. Authless remote MCP server by Clean.tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA self-contained, dependency-free MCP server that provides utility tools for time, date, mathematical calculations, and shell command execution. It supports remote connectivity through SSE and is designed for easy deployment via Docker.GPL 3.0
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides basic utility tools for text manipulation, file operations, and calculations, intended to be connected to Claude AI desktop app.-
- FlicenseNot gradedqualityDmaintenanceA comprehensive MCP server providing 21+ tools for mathematical operations, string manipulation, file handling, utilities, and web requests via FastAPI and WebSocket.-
- FlicenseNot gradedqualityBmaintenanceA Python-based MCP server providing essential utility tools: web fetching, current time, and calculator functionality.-