Agentโ™ฅ๏ธŽAge
Catalog

io.github.MukundaKatta/citecite-mcp

Official

by MukundaKatta ยท JavaScript

Inject, parse, and strip [N] citation markers in RAG outputs.

citecite-mcp (MCP Server)

This MCP server supports RAG citation markers by injecting [N] markers into LLM output, parsing those markers during post-processing, and stripping them entirely. Its functionality is centered on handling citation marker text patterns like [1] [2] [3] in generated results.

๐Ÿ› ๏ธ Key Features

  • Injects citation markers into text via inject_citations(text, citations, at?)
  • Parses all [N] markers with parse_citations(text)
  • Removes all [N] markers with strip_citations(text)

๐Ÿš€ Use Cases

  • Add [N] citation markers to RAG outputs for downstream processing
  • Parse citation markers back into structured data (source order, positions)
  • Strip citation markers from text before returning to users or other components

โšก Developer Benefits

  • Tool-based operations for citation injection, detection, and removal
  • parse_citations(text) returns each [N] with position, index, and marker length

โš ๏ธ Limitations

  • Designed specifically for [N] citation marker patterns and associated operations