About MCP Server
MCP Server is a FastAPI-based server combining file management, WebSocket communication, and tool endpoints. It also serves static files and includes a test suite.
Key features
- 01File search and reading API
- 02WebSocket communication
- 03Tool execution endpoint
- 04Static file serving
- 05Test suite
Use cases
- 01Search files in the public directory
- 02Read a specific file by name
- 03Run the summarization tool
MCP support
The project describes itself as an MCP server and provides a tools endpoint for executing tools; the listed endpoint currently supports summarization.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server
A FastAPI-based server providing WebSocket communication, file management, and tools endpoints.
🚀 Features
- 📁 File Management API
- 🔌 WebSocket Communication
- 🛠️ Tools Endpoint
- 📄 Static File Serving
- ✅ Comprehensive Test Suite
🛠️ Installation
- Clone the repository:
git clone https://github.com/khaosans/mcp-server.git
cd mcp-server
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
🏃♂️ Running the Server
Start the server with:
uvicorn server:app --reload --host 0.0.0.0 --port 8080
🧪 Running Tests
Run the test suite with:
python test_server.py
📡 API Endpoints
HTTP Endpoints
GET /files?q=<query>: Search files in the public directoryGET /files/{filename}: Read a specific filePOST /tools: Execute tools (currently supports summarization)GET /public/*: Serve static files
WebSocket Endpoint
ws://localhost:8080/ws: WebSocket endpoint for real-time communication
📝 License
MIT License
👤 Author
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.