mcp_server
Provides AI-powered document analysis, generating summaries, important details, and relevant skills from uploaded documents using Google Gemini.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AI Document Generator
An AI-powered document processing application that allows users to upload documents and generate useful information such as summaries, important details, and skills using Artificial Intelligence.
Features
Upload documents through a web interface
Extract text from uploaded documents
Generate AI-powered document summaries
Extract important information from documents
Identify relevant skills and keywords
AI agent-based document processing
MCP (Model Context Protocol) integration
FastAPI backend
Simple and user-friendly web interface
Related MCP server: MinerU Document Explorer
Technologies Used
Python – Backend programming
FastAPI – Web framework and REST API
Google Gemini – AI/LLM for document analysis
MCP (Model Context Protocol) – AI agent and tool integration
HTML – Frontend structure
CSS – Frontend styling
JavaScript – Frontend functionality
Uvicorn – ASGI server
python-dotenv – Environment variable management
Project Structure
AI-Document-Generator/
│
├── app.py
├── agent.py
├── mcp_server.py
├── document_processor.py
├── prompts.py
├── requirements.txt
├── .gitignore
├── README.md
│
├── templates/
│ └── index.html
│
├── static/
│ ├── style.css
│ └── script.js
│
└── uploads/File Description
app.py
The main FastAPI application.
It is responsible for:
Starting the web application
Handling document uploads
Calling document-processing functions
Communicating with the AI agent
Returning results to the frontend
agent.py
Contains the AI agent logic.
The agent processes the extracted document text and uses the configured AI model to generate useful information from the document.
mcp_server.py
Contains the MCP server implementation.
MCP is used to organize communication between the AI agent and the tools available in the application.
document_processor.py
Responsible for processing uploaded documents and extracting their text.
The extracted text is then passed to the AI agent for further analysis.
prompts.py
Contains the prompts used to instruct the AI model.
Keeping prompts in a separate file makes it easier to modify and improve the AI's responses.
templates/index.html
Contains the main HTML page and user interface of the application.
static/style.css
Contains the styling and layout of the web application.
static/script.js
Contains the JavaScript code responsible for frontend interactions and communication with the FastAPI backend.
requirements.txt
Contains the Python packages required to run the application.
Application Workflow
User
│
▼
Upload Document
│
▼
FastAPI Backend
│
▼
Document Processor
│
▼
Extract Document Text
│
▼
AI Agent
│
▼
Google Gemini / MCP
│
▼
Generate Document Insights
│
▼
Return Result
│
▼
Display Result to UserInstallation
1. Clone the Repository
git clone https://github.com/Nagashree13/AI-Document-Generator.gitNavigate to the project directory:
cd AI-Document-Generator2. Create a Virtual Environment
python3 -m venv venvActivate the virtual environment on Linux/macOS:
source venv/bin/activateFor Windows:
venv\Scripts\activate3. Install Dependencies
pip install -r requirements.txtAPI Key Configuration
The application requires an API key for the AI model.
Create a .env file in the project directory:
.envAdd your API key:
GEMINI_API_KEY=your_api_key_hereThe application reads the API key from the environment variables.
Running the Application
Start the FastAPI server using:
uvicorn app:app --reloadAfter starting the server, open the application in your browser:
http://127.0.0.1:8000How to Use
Open the AI Document Generator in your browser.
Upload a document.
The application extracts the text from the document.
The extracted text is processed by the AI agent.
Google Gemini analyzes the document.
The generated information is returned to the application.
The result is displayed on the web interface.
Example
For a resume uploaded to the application, the AI can generate information such as:
Summary:
MCA graduate with experience in Python, AI and web development.
Skills:
- Python
- SQL
- FastAPI
- MySQL
- JavaScript
- AI/MLFuture Improvements
Support for additional document formats
Chat with uploaded documents
Document question answering
Document comparison
Advanced keyword extraction
User authentication and authorization
Database integration
Cloud deployment
Additional MCP tools
Improved AI response generation
Project Objective
The objective of this project is to demonstrate the integration of Generative AI, AI agents, MCP, document processing, and web development to build a practical AI-based document analysis application.
This project demonstrates experience in:
Python development
FastAPI
Generative AI
Google Gemini
MCP
Document processing
Prompt engineering
REST APIs
Frontend-backend integration
Author
Nagashree M.K.
MCA Graduate
License
This project is created for educational and demonstration purposes.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Document conversion and OCR for AI agents: PDF, Office docs, images to text.
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
Document processing over MCP: merge, split and compress PDFs, run OCR, extract document text.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to read documents in Excel, DOCX, PDF, and TXT formats via MCP protocol.1123 PyPI23MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, deep-read, and build knowledge bases from Markdown, PDF, DOCX, and PPTX documents via MCP tools for retrieval, document navigation, and ingestion.23 npm652MIT

flexorch-mcpofficial
AlicenseAqualityBmaintenanceEnables Claude and other MCP-compatible agents to process documents, extract structured data, detect PII, and export LLM-ready datasets through natural language tool calls.821 PyPI1MIT- AlicenseAqualityCmaintenanceEnables AI agents to parse PDFs and search local document context through multimodal extraction and vector-based retrieval, all exposed as MCP tools.7MIT