Antigravity PDF MCP Server
Uses OpenAI's embedding API for semantic search capabilities within the knowledge base, enabling hybrid search that combines keyword and semantic retrieval techniques.
Provides persistent storage for ingested documents and vector embeddings, maintaining a queryable knowledge base across server restarts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Antigravity PDF MCP Serversearch for information about smart chunking and hybrid search techniques"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Antigravity PDF MCP Server
A powerful Model Context Protocol (MCP) server that enables intelligent document ingestion and querying capabilities for AI agents and IDEs. This server allows you to build a persistent knowledge base from PDFs, Markdown, and Text files, and query them using advanced hybrid search techniques.
Features
Multi-Format Ingestion: Support for
.pdf,.md, and.txtfiles.Smart Chunking: Recursive character splitting preserves document structure (paragraphs, headers).
Persistent Storage: Uses SQLite (
antigravity.db) to store documents and vectors across restarts.Advanced Retrieval:
Hybrid Search: Combines TF-IDF (keyword) and OpenAI Embeddings (semantic) using Reciprocal Rank Fusion (RRF).
Filtering: Scope searches to specific documents.
Citations: Returns page numbers (e.g.,
[Page 5]) for easy verification.
User Experience: Real-time progress notifications during ingestion.
MCP Protocol: Fully compliant with the Model Context Protocol over Stdio.
Related MCP server: Chalee MCP RAG
Prerequisites
Node.js (v18 or higher)
npm
Installation
Clone the repository:
git clone <repository-url> cd antigravity-pdf-mcpInstall dependencies:
npm installBuild the project:
npm run build
Configuration
To enable Semantic Search (Embeddings), create a .env file in the root directory:
OPENAI_API_KEY=sk-your-api-key-hereIf no API key is provided, the server will fallback to local TF-IDF search only.
Tools
The server exposes the following MCP tools:
ingest_document: Ingest a file (PDF, TXT, MD) into the knowledge base.path: Absolute path to the file.
query_knowledge_base: Search the knowledge base.query: The search query.document_id(Optional): Filter results to a specific document ID.
list_documents: List all ingested documents.reset_library: Clear the entire database.ingest_pdf(Deprecated): Alias foringest_document.
Usage with IDEs
This server uses the Stdio transport, making it compatible with any MCP-compliant client or IDE.
Antigravity IDE
Open Settings > MCP Servers.
Click Add Server.
Configure the server:
Name:
antigravity-pdfCommand:
nodeArguments:
/absolute/path/to/antigravity-pdf-mcp/dist/server.jsEnvironment Variables:
OPENAI_API_KEY: Your OpenAI API key.
VSCode / Claude Desktop
Add to your MCP configuration file (e.g., claude_desktop_config.json):
{
"mcpServers": {
"antigravity-pdf": {
"command": "node",
"args": [
"/absolute/path/to/antigravity-pdf-mcp/dist/server.js"
],
"env": {
"OPENAI_API_KEY": "your-api-key-if-needed"
}
}
}
}Contributing
Fork & Clone: Clone your fork locally.
Branch: Create a feature branch (
git checkout -b feature/amazing-feature).Develop: Make your changes.
Verify:
Run
npm run buildto check for errors.Use
npx ts-node verify_ux.tsto test ingestion and retrieval.
Commit & Push: Push changes to your fork.
Pull Request: Open a PR against the main repository.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables intelligent search and question-answering over PDF documents using semantic similarity and keyword search. Supports OCR for scanned PDFs, persistent vector storage with ChromaDB, and maintains source tracking with page numbers.Last updated5MIT
- Flicense-qualityDmaintenanceEnables RAG (Retrieval-Augmented Generation) capabilities with document processing, vector storage, and intelligent Q\&A using OpenAI embeddings and semantic search.Last updated
- Alicense-qualityDmaintenanceEnables Claude to perform hybrid search across local documents by combining semantic vector retrieval and BM25 keyword matching for optimal context recovery. It supports multiple file formats including PDF, CSV, and Markdown, leveraging local Ollama models for private and efficient document querying.Last updated4MIT
- Alicense-qualityBmaintenanceEnables querying enterprise documents (DOCX, PDF, PPTX) using natural language, with hybrid search and MCP integration for Claude Desktop and other agents.Last updatedMIT
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
Long-term memory for AI assistants. Hybrid retrieval, query expansion, auto-topics.
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/asoluka/antigravity-pdf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server