CLDGeminiPDF-Analyzer
MCP server for Claude Desktop allowing sharing files to Google's Gemini AI models via API for analysis and then response retrieval to Claude Desktop for further processing
claude mcp add --transport stdio tfll37-cldgeminipdf-analyzer java -jar /path/to/CLDGeminiPDF.v1.0.0.jar \ --env GEMINI_MODEL="gemini-2.0-flash" \ --env GEMINI_API_KEY="your_api_key_here"
How to use
The CLDGeminiPDF MCP Server enables Claude Desktop to analyze PDF documents by sending the PDF content to Google Gemini models and returning analyzed insights. It supports multiple Gemini models (e.g., gemini-2.5, gemini-2.0, gemini-1.5, and gemma variants) and can perform either direct PDF processing via Gemini or fallback to text extraction if needed. To use it, configure Claude Desktop to launch the CLDGeminiPDF server using the path to the JAR and provide your Gemini API key through environment variables. Once configured, you can tell Claude to analyze a PDF by referencing a file on the filesystem server or by providing a file URL, and you can request specific models or focus areas (methods, conclusions, risks) as part of your prompt. The server integrates with the existing Filesystem MCP server, so you’ll need both servers available for file access and processing.
How to install
Prerequisites:
- Java 11 or higher
- Maven (if building from source)
- Google Gemini API key
- Claude Desktop installed
- Access to the Filesystem MCP server
Option A: Use pre-built JAR (recommended)
- Download CLDGeminiPDF.v1.0.0.jar from your releases page
- Place the JAR at a convenient path on your system
- Configure Claude Desktop to use the CLDGeminiPDF server (see mcp_config example) and set GEMINI_API_KEY and GEMINI_MODEL in the environment
Option B: Build from source
- Ensure Java and Maven are installed
- Clone the repository and navigate to the CLDGeminiPDF project
- Build the project:
git clone <your-repository-url>
cd CLDGeminiPDF
mvn clean compile assembly:single
- The JAR will be produced in the target/ directory. Use that JAR in your MCP configuration as shown in the mcp_config example.
Get Your Gemini API Key:
- Visit Google AI Studio
- Sign in and create a new API key
- Copy the key and add it to the CLDGeminiPDF configuration as GEMINI_API_KEY
Additional notes
Tips and common considerations:
- Ensure the Gemini API key is valid and has access to the chosen models (e.g., gemini-2.0-flash).
- The CLDGeminiPDF server relies on the Filesystem MCP server to access PDFs; confirm the filesystem path is accessible and permitted.
- If you need to switch models, update the GEMINI_MODEL environment variable accordingly.
- If debugging, you can add Java system properties to the command, e.g., "-Djava.util.logging.level=INFO" to increase log verbosity.
- Keep the JAR and model availability in sync with Claude Desktop and the Gemini API limits in your account (watch RPM/TPM limits per model).
- Version notes: drag-and-drop support may vary by release; ensure your workflow uses a path accessible by the filesystem server.
Related MCP Servers
discord
A MCP server for the Discord integration. Enable your AI assistants to seamlessly interact with Discord. Enhance your Discord experience with powerful automation capabilities.
server-google-news
【Star-crossed coders unite!⭐️】Model Context Protocol (MCP) server implementation providing Google News search capabilities via SerpAPI, with automatic news categorization and multi-language support.
mcp -arangodb
This is a TypeScript-based MCP server that provides database interaction capabilities through ArangoDB. It implements core database operations and allows seamless integration with ArangoDB through MCP tools. You can use it wih Claude app and also extension for VSCode that works with mcp like Cline!
gtm
An MCP server for Google Tag Manager. Connect it to your LLM, authenticate once, and start managing GTM through natural language.
mcp-claude-spotify
An integration that allows Claude Desktop to interact with Spotify using the Model Context Protocol (MCP).
google-search-console
It connects directly to your Google Search Console account via the official API, letting you access key data right from AI tools like Claude Desktop or OpenAI Agents SDK and others .