iptv000iptv/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.
The Model Context Protocol (MCP) Server is a modular, FastAPI-based server designed for agent-based systems and orchestration tools, supporting local JSON and Excel file reading.
š§ Model Context Protocol (MCP) Server
This project is a modular, FastAPI-based MCP server designed for use in agent-based systems and orchestration tools like Flowsie AI and n8n. It currently supports reading local JSON and Excel files and returns the data in JSON format.
š Project Structure
mcp_project/
āāā app/
ā āāā configs/ # App configuration settings
ā āāā local_data/ # Folder to store local JSON/Excel files
ā āāā models/ # (Reserved for data models)
ā āāā routers/ # FastAPI route handlers
ā āāā services/ # Business logic (file readers, connectors)
ā āāā utils/ # Utility functions (logging, parsing)
ā āāā main.py # FastAPI app entry point
āāā Dockerfile # Docker setup
āāā requirements.txt # Python dependencies
š Getting Started
1. Install dependencies
Make sure you have Python 3.10+ installed:
pip install -r requirements.txt
2. Run the app locally
uvicorn app.main:app --reload --port 8000
Server will be available at: http://localhost:8000/docs
3. Example Usage
Endpoint: GET /local/read
Query Parameter:
filename
: Name of the file insideapp/local_data/
(e.g.,sample.json
,data.xlsx
)
curl -X 'GET' 'http://localhost:8000/local/read?filename=sample.json' -H 'accept: application/json'
š³ Docker Usage
Build Docker Image
docker build -t mcp-server .
Run the Container
docker run -p 8000:8000 mcp-server
Then access the server at: http://localhost:8000/docs
š¦ File Support
The local file reader MCP server supports:
.json
ā Standard structured JSON.xlsx
/.xls
ā Excel files (auto-converted to JSON)
Returned format is always a JSON list or dict.
š Future Modules (Suggested)
design_system_connector
: For querying design metadatagmail_connector
: Secure access to Gmail via OAuthcontext_session_handler
: Track and manage agent sessions
š License
MIT License ā use freely and modify as needed.
⨠Author
This project was generated via [ChatGPT-4] and customized for real-world MCP use cases.