mcp-local-reference
Provides read access to a local Zotero library, enabling keyword and semantic reference search, metadata retrieval, collection browsing, PDF text extraction, figure detection and cropping, and Harvard citation formatting.
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.
mcp-local-reference
An MCP server that gives Claude (or any MCP client) read access to your Zotero library. Search references, extract PDF text, crop figures, and format Harvard (Cite Them Right) citations — all from within your writing workflow.
Features
Tool | Description |
| Keyword or semantic search across your Zotero library |
| Full metadata for a single reference |
| Browse Zotero collections as a tree |
| List references in a collection |
| Extract text from a reference's PDF |
| Detect figures/images in a PDF |
| Crop a region from a PDF page and return as PNG |
| Harvard Cite Them Right formatted citation |
| Build a vector index for semantic search |
Related MCP server: zotero-mcp
Prerequisites
Zotero installed with a local library (the server reads
zotero.sqlitedirectly)Python 3.11+
uv (recommended) or pip
Installation
# Clone the repository
git clone https://github.com/YOUR_USERNAME/mcp-local-reference.git
cd mcp-local-reference
# Install with uv
uv pip install -e .
# Or with pip
pip install -e .Claude Desktop Configuration
Add the server to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Using uv (recommended)
{
"mcpServers": {
"local-reference": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-local-reference", "mcp-local-reference"]
}
}
}Using pip
{
"mcpServers": {
"local-reference": {
"command": "mcp-local-reference"
}
}
}Using Docker
{
"mcpServers": {
"local-reference": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "~/Zotero:/zotero",
"-v", "mcp-local-ref-data:/data",
"mcp-local-reference"
]
}
}
}Configuration
All settings are via environment variables:
Variable | Default | Description |
|
| Path to your Zotero data directory |
|
| Path for the vector index and other data |
|
| Resolution for cropped figures |
|
| Minimum pixel area to count as a figure |
Usage
Once connected to Claude Desktop, you can ask Claude things like:
"Search my Zotero library for papers about transformer architectures"
"Get the abstract of reference TESTKEY1"
"Extract the text from pages 5-10 of this paper"
"List the figures in this PDF and crop figure 3"
"Format a Harvard citation for this reference"
"Index my library for semantic search"
Semantic search
Run index_library once to build a vector index. After that, search_references uses semantic similarity instead of keyword matching — so queries like "papers about attention mechanisms in neural networks" find relevant results even if those exact words aren't in the title.
Development
# Install with dev dependencies
uv pip install -e ".[dev]"
# Run tests
pytest -v
# Lint
ruff check src/ tests/
# Format
ruff format src/ tests/License
MIT
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
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Remote MCP server for full read/write access to a Zotero library
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceMCP server for interacting with a Zotero library via the local API. Enables searching, retrieving, creating, updating, and deleting Zotero items, managing collections and tags, and generating citations.-
- AlicenseAqualityAmaintenanceEnables MCP clients to search a Zotero library, read items, take notes, organize collections, and perform semantic search over PDFs.8MIT
- AlicenseAqualityCmaintenanceConnects a Zotero library to MCP-compatible clients, enabling library search, full-text PDF reading, highlight retrieval, and formatted citation export.20MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI clients to search a local Zotero library using hybrid keyword and semantic retrieval, read specific pages and figure/table captions, and feed back experience so verified references rank higher over time.3MIT