MCP Server
Markdown (для LLM)Добавляет проверку академических цитат в Claude Desktop, Cursor и любой MCP-совместимый клиент.
Что вы получите
Пять инструментов, оборачивающих REST-API CiteTrue. Те же кредиты и точность — только через MCP, а не HTTP.
| Инструмент | Назначение | Кредитов / вызов |
|---|---|---|
| verify | Split a text blob into references and verify each. depth selects accuracy vs. cost. | 1 or 5 per ref by depth |
| get_credits | Возвращает баланс кредитов аккаунта. | 0 |
Быстрый старт
- Перейти на Панель → API-ключи и нажать Новый API-ключ. Скопировать ключ, начинающийся с
sk_. - Открыть конфиг MCP-клиента (см. Настройка клиента) и добавить блок citetrue.
- Перезапустить MCP-клиент — не просто чат, а всё приложение.
- Попросить ассистента «Проверь эти цитаты: [вставка]». Он вызовет verify_fast и суммирует.
Настройка клиента
Подходит любой stdio-MCP-клиент. Ниже три самых распространённых; остальные используют ту же структуру.
Claude Desktop
Установите CiteTrue как расширение Claude Desktop — без редактирования JSON и установки Node. Встроенный сервер работает на Node, который поставляется вместе с Claude Desktop.
Скачать для Claude DesktopДважды щёлкните загруженный файл (или перетащите его в Настройки → Extensions) и вставьте ключ API по запросу — он безопасно хранится в связке ключей вашей ОС.
Важно: после установки убедитесь, что расширение включено в Настройки → Extensions, и перезапустите Claude Desktop — именно это активирует его инструменты.
Или настроить вручную
Править ~/Library/Application Support/Claude/claude_desktop_config.json на macOS, %APPDATA%\Claude\claude_desktop_config.json на Windows:
{
"mcpServers": {
"citetrue": {
"command": "npx",
"args": ["-y", "@citetrue/mcp-server"],
"env": {
"CITETRUE_API_KEY": "sk_..."
}
}
}
}Cursor
В Settings → MCP → Add new MCP server использовать ту же структуру command / args / env, что в JSON Claude Desktop ниже.
Windsurf, Zed и другие
Любой stdio-MCP-клиент работает — путь конфига разный, но три поля (command, args, env) те же.
Конфигурация
| Переменная env | По умолчанию | Примечания |
|---|---|---|
| CITETRUE_API_KEY | — (Обязательно) | Bearer-токен из дашборда. |
| CITETRUE_API_URL | https://api.citetrue.com | Переопределить для self-hosted. |
Инструменты
verify
Split a free-form text blob into individual references and verify each. depth selects accuracy vs. cost.
Параметры
Supply exactly one of text, refHash, or taskHash:
textstring — raw text containing one or more references. Accepts numbered lists, bullets, blank-line-separated, BibTeX, or in-text prose with author-year citations (whendepth ≥ 5). Max 10MB.refHashstring — upgrade a single prior reference to a deeper run. Requiresdepth ≥ 5andparentTaskHash.parentTaskHashstring — required when usingrefHash; the original task that produced the ref.taskHashstring — resume a previously-started task; replays cached state. No re-billing.depth1 | 5, optional, default 1 —1fast (1 credit/ref);5deep (5 credits/ref).20exists as a closed-beta tier and is not enabled for public use.forcebool, optional — bypass cached results (forces a fresh run, charges full cost).
Вывод
{
"taskHash": "...",
"refs": [
{
"hash": "a1b2c3...",
"text": "[1] Vaswani, A., Shazeer, N., Parmar (2017)...",
"assessment": "authentic",
"value": {
"type": "citation",
"title": "Attention is all you need",
"authors": ["A Vaswani", "N Shazeer", "N Parmar"],
"year": 2017,
"url": "https://..."
},
"note": "",
"notices": [],
"data": { "depth": 1, "cost": 1 }
}
],
"cost": 2,
"balance": 248
}data.depth is the highest depth that has run on the ref (1 or 5). Clients derive a "deep-verified" flag locally as depth ≥ 5. note is a free-form one-line natural-language explanation in English (intended for end-user display); for programmatic checks, match on notices[] instead.
Assessment values
authentic— paper exists and is the one cited;valuecontains the matched paper.unsure— found something but can't confirm;noticesandconfidencedescribe why.inauthentic— definitively not found / fabricated / unrelated.invalid— input wasn't a citation; pipeline refused to search.error— verification failed on this ref;data.errors[]lists tokens.exceeded— credits ran out before this ref ran.
Оплата
1 credit per ref for depth=1, 5 credits per ref for depth=5.
Устранение неполадок
If the server fails to start, ensure npx is on PATH and CITETRUE_API_KEY is set.