Model-Context-Protocol

Model-Context-Protocol

3

The MCP File System API is a server that allows interaction with a file system using HTTP requests and integrates with the Google Gemini API. It supports various file operations and is designed for efficient file handling and text summarization.

🚀 MCP File System API

📌 Overview

This project implements an MCP server to interact with a file system via HTTP requests, supporting file creation, reading, copying, moving, and deletion using FastAPI. It integrates with the Google Gemini API for processing and summarizing file contents.

📂 Features

  • 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

🛠️ Tech Stack

  • Python 3.9+
  • FastAPI
  • MCP
  • Google Gemini API
  • Uvicorn
  • httpx
  • aiofiles
  • Docker & Cloud Run

🔄 Running the Application

  • Start the MCP Server with specified host and port

📌 API Endpoints

  • GET /read-text-from-file: Read file contents
  • POST /invoke: Call MCP function