Research Citations MCP Server
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., "@Research Citations MCP Serverfind citations about transformer architecture"
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.
Research Citations MCP Server
A Model Context Protocol (MCP) server for searching and citing research papers using Retrieval-Augmented Generation (RAG). This server helps you find relevant citations, search for specific passages, and answer research questions based on your collection of PDF research papers.
Features
🔍 Semantic Search: Find relevant passages across all your research papers
📚 Citation Finder: Get properly formatted citations with source references
💡 Question Answering: Ask questions and get answers backed by your papers
📝 Paper Summarization: Generate summaries with custom prompts or pre-defined focus areas
🔬 Methodology Extraction: Extract structured methodology details from papers
📖 Bibliography Extraction: Get APA-formatted citations from paper reference sections
🏷️ Automatic Metadata Extraction: During index rebuild, automatically extracts authors, year, title, and APA citation from first 1-2 pages using GPT-4o
📄 PDF Processing: Automatic extraction and chunking of text from PDFs
🚀 SSE Transport: Remote access via Server-Sent Events
🎯 Vector Search: ChromaDB-powered semantic similarity search
🤖 LangChain Integration: Built on battle-tested RAG frameworks
Related MCP server: ScholarMCP
Architecture
┌─────────────────────────────────────────────────┐
│ MCP Client (Claude, etc.) │
└───────────────────┬─────────────────────────────┘
│ SSE Transport
┌───────────────────▼─────────────────────────────┐
│ FastAPI + Starlette │
│ MCP Server │
├─────────────────────────────────────────────────┤
│ RAG Engine │
│ ┌─────────────┐ ┌──────────────┐ │
│ │ LangChain │◄──────►│ ChromaDB │ │
│ │ Retrieval │ │ Vector Store │ │
│ └─────────────┘ └──────────────┘ │
│ │ ▲ │
│ ▼ │ │
│ ┌─────────────┐ ┌──────────────┐ │
│ │ OpenAI LLM │ │ PDF Processor│ │
│ │ & Embeddings│ │ (PyPDFLoader)│ │
│ └─────────────┘ └──────┬───────┘ │
└────────────────────────────────┼───────────────┘
│
┌────────▼────────┐
│ Research Papers │
│ (PDF Files) │
└──────────────────┘Installation
Prerequisites
Python 3.10 or higher
OpenAI API key
UV package manager (recommended) or pip
Setup
Clone the repository
git clone <your-repo-url> cd citations-mcpInstall dependencies
# Using uv (recommended) uv sync # Or using pip pip install -e .Configure environment
cp .env.example .envEdit
.envand set:OPENAI_API_KEY: Your OpenAI API keyPAPERS_DIRECTORY: Path to your folder containing PDF research papersOther optional settings (see
.env.example)
Usage
Starting the Server
# Using uv
uv run uvicorn src.main:app --host 127.0.0.1 --port 8000 --reload
# Or using uvicorn directly
uvicorn src.main:app --host 127.0.0.1 --port 8000 --reloadThe server will:
Start on
http://127.0.0.1:8000Automatically process all PDFs in your papers directory
Build a vector store index (cached for future runs)
Expose MCP tools via SSE at
http://127.0.0.1:8000/mcp/sse
Available MCP Tools
1. search_papers
Search for relevant passages in your research papers.
{
"query": "machine learning for natural language processing",
"num_results": 5
}2. search_in_paper
Search for relevant passages within a specific paper only.
{
"query": "transformer architecture",
"filename": "attention_is_all_you_need.pdf",
"num_results": 5
}3. find_citation
Find relevant citations for a specific topic, grouped by source paper.
{
"topic": "transformer architecture",
"num_citations": 3
}4. answer_question
Ask a research question and get an answer with sources.
{
"question": "What are the main challenges in few-shot learning?"
}5. list_papers
List all indexed research papers.
{}6. get_paper_info
Get information about a specific paper.
{
"filename": "attention_is_all_you_need.pdf"
}7. rebuild_index
Rebuild the vector store index (use after adding new papers). During rebuild, the server automatically:
Extracts metadata from the first 1-2 pages of each paper using GPT-4o
Captures authors, publication year, title, journal/conference, DOI, and generates APA citation
Attaches this metadata to all chunks for easy citation reference
{
"force": true
}Note: Metadata extraction uses GPT-4o API calls (one per paper), so rebuilding with many papers may incur API costs.
8. extract_methodology
Extract structured methodology details from a research paper.
{
"filename": "attention_is_all_you_need.pdf"
}Returns: Research approach, datasets, models, evaluation metrics, experimental setup, baselines, and implementation details.
9. summarize_paper
Generate a summary of a research paper with custom prompts or pre-defined focus.
{
"filename": "attention_is_all_you_need.pdf",
"focus": "key_findings" // Options: "general", "key_findings", "methodology", "limitations", "contributions"
}Or with a custom prompt:
{
"filename": "attention_is_all_you_need.pdf",
"custom_prompt": "Summarize the experimental results and their statistical significance"
}10. extract_bibliography
Extract the bibliography/references from a paper in APA format.
{
"filename": "attention_is_all_you_need.pdf"
}Returns: APA-formatted list of all citations used in the paper.
Connecting from Claude Desktop
Add this to your Claude Desktop MCP configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"research-citations": {
"url": "http://127.0.0.1:8000/mcp/sse"
}
}
}Restart Claude Desktop and you'll see the research tools available.
Public Access via Ngrok (for ChatGPT and Remote Access)
To expose your server publicly via ngrok:
# Install ngrok (if not already installed)
brew install ngrok
# Configure your ngrok auth token
export NGROK_AUTHTOKEN="your_ngrok_token"
# Start the public server
./start_public.shThis will give you a public URL like https://abc123.ngrok-free.app/mcp/sse that you can use with ChatGPT or other remote MCP clients.
See NGROK_SETUP.md for detailed instructions.
Configuration
Environment Variables
Variable | Description | Default |
| OpenAI API key (required) | - |
| Path to research papers folder (required) | - |
| Path to store vector database |
|
| ChromaDB collection name |
|
| Text chunk size for processing |
|
| Overlap between chunks |
|
| OpenAI embedding model |
|
| OpenAI LLM model |
|
| Server host |
|
| Server port |
|
Adding Papers
Place PDF files in your
PAPERS_DIRECTORYEither:
Restart the server (auto-detects new papers)
Call the
rebuild_indextool withforce: true
Development
Project Structure
citations-mcp/
├── src/
│ ├── __init__.py
│ ├── config.py # Configuration management
│ ├── pdf_processor.py # PDF loading and chunking
│ ├── rag_engine.py # RAG pipeline and search
│ ├── mcp_server.py # MCP tool definitions
│ ├── sse_transport.py # SSE transport layer
│ └── main.py # FastAPI application
├── pyproject.toml # Dependencies
├── .env.example # Environment template
└── README.md # This fileRunning Tests
# Using uv
uv run pytest
# Or using pytest directly
pytestAdding New Tools
Edit src/mcp_server.py and add a new function decorated with @mcp.tool():
@mcp.tool()
async def my_new_tool(param: str) -> Dict[str, Any]:
"""Tool description."""
# Implementation
return {"result": "value"}Troubleshooting
Vector store not initializing
Check that
PAPERS_DIRECTORYexists and contains PDF filesEnsure
OPENAI_API_KEYis validCheck logs for specific error messages
PDFs not being processed
Verify PDFs are valid and readable
Check file permissions
Look for processing errors in server logs
Poor search results
Adjust
CHUNK_SIZEandCHUNK_OVERLAPin.envTry different
EMBEDDING_MODELoptionsRebuild index with
force: true
Performance Tips
First Run: Initial indexing takes time proportional to number of papers
Caching: Vector store is persisted and reused on subsequent runs
Embeddings:
text-embedding-3-smallis fast and cost-effectiveChunks: Smaller chunks (500-1000) work better for precise citations
License
MIT License - See LICENSE file for details
Contributing
Contributions welcome! Please open an issue or PR.
Acknowledgments
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
- AlicenseAqualityDmaintenanceAn MCP server that enables saving, retrieving, and managing research content using ChromaDB vector storage and semantic search.Last updated5MIT
- Alicense-qualityBmaintenanceAn MCP server that enables coding agents to search academic papers, ingest full-text PDFs, extract structured details, and manage citations in literature research workflows.Last updated23MIT
- Alicense-qualityDmaintenanceAn MCP server for academic research combining local document search with Semantic Scholar API integration.Last updatedMIT
- Alicense-qualityBmaintenanceA local-first paper RAG server that enables searching and managing academic PDFs via MCP tools, supporting metadata enrichment and citation graphs.Last updated1MIT
Related MCP Connectors
Academic research MCP server for paper search, citation checks, graphs, and deep research.
Local-first RAG engine with MCP server for AI agent integration.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
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/SebastianBoehler/citations-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server