MCP server for querying academic papers via Verbatim RAG
Project description
Verbatim MCP Server
An MCP (Model Context Protocol) server for querying academic papers through Verbatim - a RAG system that provides verbatim, cited answers from research papers.
Features
- Search papers by keywords, authors, venues, and years
- Ask research questions and get answers with citations
- Get paper metadata and full content
- Export citations in BibTeX format
- Browse authors, venues, and years in the corpus
Quick Start
Step 1: Get an API Key
- Go to verbatim.krlabs.eu
- Sign up / Log in
- Navigate to Usage → API Keys
- Create a new API key and copy it
Step 2: Set up the MCP server
Choose the setup that matches your environment:
Setup for Claude Code (CLI)
Option A: One-line setup (recommended)
claude mcp add --transport stdio \
--env VERBATIM_API_KEY=vbm_your_key_here \
verbatim -- uvx verbatim-mcp
This uses uvx to run the server without installing anything.
Option B: Install globally first
pip install verbatim-mcp
claude mcp add --transport stdio \
--env VERBATIM_API_KEY=vbm_your_key_here \
verbatim -- verbatim-mcp
Option C: Config file
Add to ~/.claude.json or your project's .mcp.json:
{
"mcpServers": {
"verbatim": {
"type": "stdio",
"command": "uvx",
"args": ["verbatim-mcp"],
"env": {
"VERBATIM_API_KEY": "vbm_your_key_here"
}
}
}
}
Then restart Claude Code or run /mcp to verify.
Setup for Claude Desktop App
Edit your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"verbatim": {
"command": "uvx",
"args": ["verbatim-mcp"],
"env": {
"VERBATIM_API_KEY": "vbm_your_key_here"
}
}
}
}
Restart Claude Desktop. You should see "verbatim" in the tools menu (hammer icon).
Setup for OpenAI Codex
Option A: Via CLI
codex mcp add verbatim \
--env VERBATIM_API_KEY=vbm_your_key_here \
-- uvx verbatim-mcp
Option B: Via config file
Edit ~/.codex/config.toml:
[mcp_servers.verbatim]
command = "uvx"
args = ["verbatim-mcp"]
[mcp_servers.verbatim.env]
VERBATIM_API_KEY = "vbm_your_key_here"
Then restart Codex or run /mcp to verify.
Setup for Cursor / VS Code with Continue
For Cursor or Continue.dev extension, add to your config:
{
"mcpServers": {
"verbatim": {
"command": "uvx",
"args": ["verbatim-mcp"],
"env": {
"VERBATIM_API_KEY": "vbm_your_key_here"
}
}
}
}
Verify It's Working
In Claude Code, run:
/mcp
You should see verbatim listed with its tools.
Try asking Claude:
"Use verbatim to search for papers about attention mechanisms"
Available Tools
| Tool | Description |
|---|---|
query_rag |
Ask a research question, get an answer with citations |
verbatim_transform |
Turn any question + context into a verbatim cited answer |
search_papers |
Search papers by keywords and filters |
get_paper |
Get metadata for a specific paper |
get_paper_content |
Get full text of a paper |
get_citation |
Get BibTeX citation |
list_authors |
Search authors by name |
list_venues |
Browse publication venues |
list_booktitles |
Browse proceedings/booktitles |
list_years |
List available publication years |
Example Prompts
Once configured, try these with Claude:
- "Search for papers about transformer efficiency from 2023"
- "What does the research say about attention mechanisms?"
- "Find papers by Ashish Vaswani"
- "Get the BibTeX citation for that paper"
- "List the top venues in the corpus"
Environment Variables
| Variable | Description | Default |
|---|---|---|
VERBATIM_API_KEY |
Your API key (required) | - |
VERBATIM_API_URL |
API base URL | https://verbatim.krlabs.eu |
Troubleshooting
"VERBATIM_API_KEY environment variable is required"
- Make sure you added the
envblock with your API key
Server not showing in /mcp
- Restart Claude Code:
claude(exit and reopen) - Check config syntax:
claude mcp list
"API error (401): Unauthorized"
- Your API key is invalid or expired
- Generate a new one at verbatim.krlabs.eu/usage
"API error (429): Rate limit"
- You've exceeded your query limit
- Check usage at verbatim.krlabs.eu/usage
Compatibility
MCP (Model Context Protocol) is supported by:
- Claude Code (CLI) -
~/.claude.json - Claude Desktop App -
claude_desktop_config.json - OpenAI Codex -
~/.codex/config.toml - Cursor - built-in MCP support
- Continue.dev - VS Code/JetBrains extension
License
MIT License - see LICENSE for details.
Links
- Verbatim - The RAG service
- MCP Documentation - Learn about MCP
- Claude Code - Claude's coding assistant
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file verbatim_mcp-0.1.0.tar.gz.
File metadata
- Download URL: verbatim_mcp-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ac1cde478ed62f28ee5441f5f759530a207a2cc00eab60be684ae7ecf53e496
|
|
| MD5 |
b88f2826825e671eca727d38750b0b9d
|
|
| BLAKE2b-256 |
294b210d7233c88fa8974995365446037a8d1136485de410feb3305d8e544531
|
File details
Details for the file verbatim_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: verbatim_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ba470af78a60fb9bd0d5012a76a9016a6711d5ce40e1ccb49e4c52fc1779783
|
|
| MD5 |
3e487d1833cf5bd786aa456c0573f200
|
|
| BLAKE2b-256 |
551a8bce22d1194dea594b9b762d5a2396ec5dc437edc4b1db6107591fe35474
|