MCP-Server

MCP-Server

A Flask-based MCP server with web GUI that provides utility tools for mathematical calculations, text analysis, string transformations, timestamps, and Fibonacci sequence generation.

Category
Visit Server

README

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

Installation

  1. Clone this repository:
git clone https://github.com/thedcfix/MCP-Server.git
cd MCP-Server
  1. Install dependencies:
pip install -r requirements.txt

Usage

  1. Start the Flask server:
python app.py
  1. Open your web browser and navigate to:
http://localhost:5000
  1. The 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 interface
  • GET /api/tools - List all available tools
  • GET /api/server-info - Get server information
  • POST /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 file

Adding New Tools

To add a new tool to the MCP server:

  1. Open mcp_server.py
  2. Add a new method to handle the tool (e.g., _my_tool)
  3. Register the tool in the _register_tools() method with its metadata
  4. The tool will automatically appear in the web GUI

License

MIT License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured