MCP File System API
by Vijayk-213
This project implements an MCP (Model Context Protocol) Server that allows interaction with a file system via HTTP requests. It supports file creation, reading, copying, moving, and deletion using FastAPI and integrates with Google Gemini API to process and summarize file contents.
Last updated: N/A
What is MCP File System API?
The MCP File System API is a server that provides an HTTP interface for interacting with a file system. It leverages FastAPI for handling requests and integrates with the Google Gemini API for text summarization.
How to use MCP File System API?
To use this server, clone the repository, set up a virtual environment, install dependencies, configure the Google Gemini API key, start the MCP server using Uvicorn, and run the main application. API endpoints are available for reading file contents and invoking MCP functions.
Key features of MCP File System API
Read various file formats (.txt, .csv, .json, .xml, .docx)
Stream large files efficiently
Integrate with Google Gemini API for text summarization
Cloud Run deployment support
Use cases of MCP File System API
Programmatically access and manipulate files on a server
Summarize text content from various file types using Google Gemini API
Deploy a file system API to a cloud environment using Cloud Run
Build applications that require file processing and analysis
FAQ from MCP File System API
What is MCP?
What is MCP?
MCP stands for Model Context Protocol.
What file formats are supported?
What file formats are supported?
The server supports .txt, .csv, .json, .xml, and .docx file formats.
How do I set up the Google Gemini API key?
How do I set up the Google Gemini API key?
Create a .env file and add your GEMINI_API_KEY.
How do I start the MCP server?
How do I start the MCP server?
Run the command: uvicorn mcp_server:app --host 127.0.0.1 --port 8000 --reload
Where can I find the API endpoints?
Where can I find the API endpoints?
The API endpoints are listed in the README, including /read-text-from-file and /invoke.