MCP Server
Markdown (para LLMs)Adiciona verificação de citações acadêmicas ao Claude Desktop, Cursor ou qualquer cliente MCP.
O que você obtém
Cinco ferramentas que encapsulam a API REST CiteTrue. Mesmos créditos, mesma precisão — só via MCP em vez de HTTP.
| Ferramenta | Finalidade | Créditos / chamada |
|---|---|---|
| verify | Split a text blob into references and verify each. depth selects accuracy vs. cost. | 1 or 5 per ref by depth |
| get_credits | Retorna o saldo de créditos da conta. | 0 |
Início rápido
- Ir a Painel → Chaves API e clicar em Nova chave API. Copiar a chave que começa com
sk_. - Abrir a config do cliente MCP (ver Configuração do cliente) e adicionar o bloco citetrue.
- Reiniciar o cliente MCP — não apenas o chat, o app inteiro.
- Pedir ao assistente "Verifique estas citações: [colar]". Ele chamará verify_fast e resumirá.
Configuração do cliente
Qualquer cliente MCP stdio funciona. Abaixo os três mais comuns; outros usam a mesma estrutura.
Claude Desktop
Instale o CiteTrue como extensão do Claude Desktop — sem editar JSON nem configurar Node. O servidor empacotado roda no Node que vem com o Claude Desktop.
Baixar para o Claude DesktopDê dois cliques no arquivo baixado (ou arraste-o para Configurações → Extensions) e cole sua chave de API quando solicitado — ela é armazenada com segurança no chaveiro do seu sistema.
Importante: após instalar, confirme que a extensão está ativada (ligada) em Configurações → Extensions e reinicie o Claude Desktop — é isso que ativa as ferramentas dela.
Ou configurar manualmente
Editar ~/Library/Application Support/Claude/claude_desktop_config.json no macOS, %APPDATA%\Claude\claude_desktop_config.json no Windows:
{
"mcpServers": {
"citetrue": {
"command": "npx",
"args": ["-y", "@citetrue/mcp-server"],
"env": {
"CITETRUE_API_KEY": "sk_..."
}
}
}
}Cursor
Em Settings → MCP → Add new MCP server, usar a mesma estrutura command / args / env que o JSON do Claude Desktop abaixo.
Windsurf, Zed, outros
Qualquer cliente MCP stdio funciona — qualquer que seja o caminho da config, os mesmos três campos (command, args, env).
Configuração
| Variável env | Padrão | Notas |
|---|---|---|
| CITETRUE_API_KEY | — (Obrigatório) | Token Bearer do dashboard. |
| CITETRUE_API_URL | https://api.citetrue.com | Sobrescrever para deploys self-hosted. |
Ferramentas
verify
Split a free-form text blob into individual references and verify each. depth selects accuracy vs. cost.
Parâmetros
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).
Saída
{
"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.
Faturamento
1 credit per ref for depth=1, 5 credits per ref for depth=5.
Solução de problemas
If the server fails to start, ensure npx is on PATH and CITETRUE_API_KEY is set.