OokCite MCP Server
Click on "Deploy 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., "@OokCite MCP ServerVerify this DOI: 10.1038/nphys1170"
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.
OokCite MCP Server
Give MCP-capable tools the ability to validate DOIs, format citations, manage
bibliography collections, and catch fabricated references. Returns citation
metadata only -- not PDFs or full-text articles. Desktop clients can run it
over standard input and output. Remote clients use
https://ookcite-api.turtletech.us/mcp.
Quick Start
One command to install and configure:
npx @turtletech/ookcite-mcp setupThis auto-detects supported MCP clients and writes the configuration for you. Connect an OokCite account for higher rate limits and collection tools without putting an API key in shell arguments or MCP configuration:
npx @turtletech/ookcite-mcp setup --connectThe command opens the TurtleTech dashboard, creates or activates the Free plan,
stores the issued key in the platform credential store, and writes only a
credential reference to detected clients. Use setup --connect --device on a
headless machine.
An existing API key remains supported:
npx @turtletech/ookcite-mcp setup --key YOUR_API_KEYNo API key required for basic usage (20 lookups/day): format_citation and a
small plaintext import_bibliography (omit collection, up to 8 items).
Sign up for more.
Paste a list to BibTeX
import_bibliography accepts a numbered or blank-line citation list, not only
.bib / .ris. Omit collection for a small paste: the tool resolves the
items and returns .bib text. With a key, pass collection to save the
resolved entries. export_collection can then emit .bib (format=bib) or
CSL bibliography text (format=csl or a style id such as ieee).
npx @turtletech/ookcite-mcp setup remains the installer. The server never
fetches PDFs.
After changing MCP config, restart the client or reload its MCP servers. Many clients do not hot-reload environment-variable changes for already-running stdio servers.
Related MCP server: doc-tools-mcp
Install (Alternative Methods)
npm (recommended):
npm install -g @turtletech/ookcite-mcpcargo-binstall (fastest, no Node.js):
cargo binstall ookcite-mcpcargo install (from source):
cargo install ookcite-mcpPre-built binaries: Download from GitHub Releases for Linux (x86_64, aarch64), macOS (x86_64, aarch64), and Windows.
Configure
If you used setup, you're done. Otherwise, add to your MCP client config:
{
"mcpServers": {
"ookcite": {
"command": "npx",
"args": ["-y", "@turtletech/ookcite-mcp"]
}
}
}With an API key:
{
"mcpServers": {
"ookcite": {
"command": "npx",
"args": ["-y", "@turtletech/ookcite-mcp"],
"env": {
"OOKCITE_API_KEY": "your_key_here"
}
}
}
}If you installed globally (npm install -g or cargo install), you can use
"command": "ookcite-mcp" directly instead of npx.
Keeping the key out of the config file
setup --connect uses the platform credential store by default. It refuses to
replace an existing platform credential or named OokCite MCP configuration
unless --replace-credential or --replace-config is given explicitly.
A generic credential manager can be used instead. The store command receives the new key on standard input; it must not expect the key in a command-line argument. The retrieval command prints the key on standard output when the MCP server starts:
npx @turtletech/ookcite-mcp setup --connect \
--store-command "credential-cli store ookcite" \
--retrieve-command "credential-cli read ookcite"For an explicit owner-only file instead of a credential manager:
npx @turtletech/ookcite-mcp setup --connect \
--credential-file "$HOME/.config/ookcite/api-key"The file is created with owner-only permissions and is never overwritten. The platform, helper-command, and file forms put references such as these in client configuration:
{
"mcpServers": {
"ookcite": {
"command": "npx",
"args": ["-y", "@turtletech/ookcite-mcp"],
"env": {
"OOKCITE_API_KEY_COMMAND": "credential-cli read ookcite"
}
}
}
}At startup, source precedence remains OOKCITE_API_KEY,
OOKCITE_API_KEY_COMMAND, OOKCITE_API_KEY_FILE, then the platform credential
reference. With none of them the server starts anonymous. setup --key remains
available for existing deployments that intentionally keep the key in client
configuration.
Credential retrieval obeys two constraints:
Retrieval receives closed standard input, so it cannot consume MCP JSON-RPC.
Retrieval is bounded by
OOKCITE_API_KEY_TIMEOUT, which defaults to 10 seconds, and its output is never copied into diagnostics.
Consult your client's MCP documentation for its configuration-file location.
Use the mcpServers.ookcite JSON above when automatic setup is unavailable,
then restart the client or reload its MCP servers.
Optional env (stdio MCP, all clients):
Variable | Purpose |
| Higher rate limits + collection tools (optional for basic lookup/format) |
| Override API base URL (default |
|
|
|
|
|
|
| Command printing the key on stdout; stdin is closed |
| Owner-protected file whose first line is the key |
| Seconds allowed for credential retrieval (default 10) |
|
|
| Platform credential service name (default |
| Platform credential account name (default |
Remote MCP
Use OokCite from a chat product without installing anything. Add this address, choose sign-in, and approve the login when asked:
https://ookcite-api.turtletech.us/mcpThe chat then sends a short-lived access token:
Authorization: Bearer <access token>Lookups count against that signed-in account. A pasted API key is rejected. The transport is stateless Streamable HTTP: one POST, JSON in and JSON out. Select Streamable HTTP and sign-in (OAuth). Do not select the legacy SSE transport, an API key, or "No authentication".
eduGenAI Chat, after ookcite-api.turtletech.us is whitelisted:
Field | Value |
Name | OokCite |
Description | Verify DOIs and ISBNs, resolve messy citations, and format bibliography entries in CSL styles. Returns citation metadata only, not PDFs or full text. |
URL |
|
Transport | Streamable HTTP |
Authentication | OAuth |
ookcite-mcp serve runs your own copy. Desktop clients that spawn a subprocess still use standard input and output.
Variable | Purpose |
| OokCite API base URL (default |
|
|
| Sign-in issuer. Required when auth is |
| Token audience. Required when auth is |
| Required scope (default |
| MCP path (default |
| Extra |
| Browser |
MCP usage tips
Prefer batch tools (
verify_references,batch_format,batch_add_to_collection,import_bibliography) over many single-citation calls.Collection mutations require the signed-in account, or
OOKCITE_API_KEYon a copy you run yourself. Destructive tools (delete_collection,remove_from_collection,unshare_collection) are annotated for clients that honor MCP tool hints.The server writes diagnostics to stderr only on the MCP path; stdout is reserved for JSON-RPC.
Tools
Lookup & Validation
Tool | Purpose |
| Check if a DOI exists (anti-hallucination) |
| Look up a book by ISBN |
| Find a paper from messy citation text; returns original query, confidence, and title |
| Resolve many citation strings in one request (max 50) |
| Corpus search with author / category / citation facets |
| Check API availability and health |
Formatting
Tool | Purpose |
| Format a DOI in any of 2900+ CSL styles (no API key for a single citation) |
| Batch-check a list of DOIs |
| Format multiple citations at once |
| Find CSL style IDs by name |
| Page through the full CSL style list |
| Generate grouped in-text markers (e.g. [1-3]) |
Account
Tool | Purpose |
| Plan in effect plus daily (and monthly) lookups remaining |
ORCID
Tool | Purpose |
| Find ORCID profiles by name, affiliation, or ORCID ID |
| Fetch one ORCID profile by ID |
| Index an ORCID profile's publications so they are searchable |
Collections (requires sign-in)
Collections are a signed-in feature. The hosted server uses the account from
sign-in. A copy you run yourself uses OOKCITE_API_KEY. A small plaintext
import_bibliography with no collection is the exception: it returns .bib
under the anonymous cap.
Tool | Purpose |
| List saved citation collections |
| Add a citation (by DOI or free-text) |
| Add multiple citations at once |
| Import BibTeX, RIS, or a pasted plaintext list |
| Export collection as BibTeX or CSL text |
| Search within a collection; returns |
| Check for duplicates; returns |
| Delete a collection |
| Update name, description, or style |
| Remove an entry by |
| Correct a saved entry's title, authors, year, DOI, … |
| Merge two entries of one collection into one |
| Set tags on a collection |
| Reorder entries |
Typical workflow:
Paste a numbered citation list into
import_bibliography(omitcollectionfor a small list) and keep the returned.bibOr keep
references.bib/library.bibunder version control and import that file into a collectionUse
search_collection,check_duplicates, andexport_collection(biborcsl) while revisingTreat the collection as an audit/export companion, not the only copy of your bibliography
Removing a single entry: call search_collection (or check_duplicates) to
see each hit as entry_id: … (and optionally aliases: doi:… when the stored id
is opaque). Pass that entry_id to remove_from_collection, or pass the paper's
bare DOI / doi:10.x/y — the server resolves aliases locally before the API call.
Sharing & Collection Operations
Tool | Purpose |
| Create a shareable link |
| Revoke sharing |
| View a shared collection by token |
| Merge multiple collections |
| Move entries between collections |
Sharing is available to signed-in accounts with collections. Free accounts can import and batch-add within their daily quota. Merge and batch-move require an Academic or Business plan.
Utilities
Tool | Purpose |
| Better BibTeX-style keys for a list of DOIs |
| Expand a journal abbreviation to its full name |
| Re-render BibTeX or RIS as canonical BibTeX |
These three require an Academic or Business plan.
Plans & Pricing
Tier | Price | Lookups/day | API calls/month | Collections | Entries/collection |
Anonymous | Free | 20 | -- | 0 | -- |
Free | Free | 60 | -- | 4 | 200 |
Academic | EUR 4/mo | 20,000 | 10,000 | 10 | 1,000 |
Business | EUR 10/mo | 20,000 | 40,000 | 20 | 4,000 |
Re-lookups can be served without quota use when collection metadata is already available to the API. A retrieval that has to resolve the paper again can count against the current plan's quota. Paid Academic checkout is intended for students, researchers, and educators at accredited institutions; a verified ORCID can also qualify a signed-in account for Academic limits.
Anti-Hallucination
Add this to your system prompt:
Before citing any paper, use validate_doi to confirm the reference exists. If validation fails, do not include the citation.
For revision workflows, add:
Keep the project bibliography in a local
.bibfile under version control. Use OokCite collections for verification, deduplication, and export.
How It Works
The MCP server connects to the public OokCite API to look up and format citations. It's a thin MCP wrapper around the OokCite REST API with no local database, and no heavy dependencies.
Sign up for a free account (60 lookups/day), or upgrade to Academic (EUR 4/mo) or Business (EUR 10/mo) for higher monthly API limits, larger collections, paid utilities, merge, and batch-move.
Source layout
The crate is a thin MCP (stdio) wrapper around the public OokCite REST API. There is no local citation database; all state lives on the API.
Path | Role |
| Binary entry: |
| Startup probes (validate |
|
|
|
|
| Tool argument structs ( |
| API base URL, package version, reverse-lookup confidence threshold |
|
|
| Collection entry ids, bare DOI / |
| Pasted-list split and local |
| Reverse-lookup and free-text resolve payload helpers |
| Endpoint registry ( |
| Library root (exports |
| Decrypts |
| Age-encrypted OpenAPI snapshot + |
|
|
| Asciinema recording scripts |
| Cocogitto pre-bump hook: |
Collections / entry ids: search_collection and check_duplicates emit
entry_id: … lines. remove_from_collection accepts that id, a bare DOI, or
doi:10.x/y (resolved locally in collection_entries before the DELETE call).
Release: tag v* runs .github/workflows/release.yml (multi-arch GitHub
Release assets, crates.io, npm). Version bumps use cocogitto
(cog.toml + scripts/set-version.sh).
Why server.rs is large: rmcp's #[tool_router] / #[tool] macros keep
handlers on one impl Server. Further file splits without macro workarounds
add little user value; peel tests or add small helpers (resolve_many, shared
Me type) before fighting the macro.
Contributing / local checks
cargo test --bin ookcite-mcp # unit tests (no contract key needed)
cargo build --release
./target/release/ookcite-mcp --version
# Contract tests (optional locally; required in CI with secret):
export OOKCITE_CONTRACT_KEY="value-from-your-credential-manager"
cargo test --test api_contractLive MCP smoke (optional; needs OOKCITE_API_KEY): add/search/remove with a
bare DOI on a throwaway collection, then delete_collection.
Documentation
License
MIT. see LICENSE.
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
MCP server for Altmetric APIs - track research attention across news, policy, social media, and more
Auditable MCP server for PubMed, Europe PMC, ClinicalTrials.gov, and bioRxiv/medRxiv queries
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for verifying academic citations via Semantic Scholar, OpenAlex, and CrossRef.1MIT
- AlicenseAqualityCmaintenanceAn MCP server for managing pandoc/CSL-YAML bibliographies and verifying citations in documents.1410 npmGPL 3.0
- AlicenseAqualityAmaintenanceMCP server for downloading academic papers from DOI or title, resolving references, and generating citations. Supports batch downloads, multiple mirrors, and optional Unpaywall integration.112MIT
- AlicenseAqualityCmaintenanceAn MCP server for the INSPIRE-HEP API, enabling literature search, author lookups, DOI/arXiv/ORCID resolution, citation export, and bibliography generation with configurable detail levels.9MIT