mcpField
C
citecite-mcp

citecite-mcp

Local
github.com/MukundaKattaDeveloper Tools0Updated 20w ago

About citecite-mcp

citecite-mcp is an MCP server for managing numbered citation markers in RAG output. It can add markers, locate them with positions, or remove them during post-processing.

Key features

  1. 01Insert numbered citation markers
  2. 02Parse markers with positions
  3. 03Strip citation markers
  4. 04Support insertion at an offset

Use cases

  1. 01Add source markers to generated RAG answers
  2. 02Extract citation positions for post-processing
  3. 03Remove markers before presenting text

MCP support

The MCP server exposes tools to insert, parse, and strip [N] citation markers in text.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"mukundakatta-citecite": {
"command": "npx",
"args": [
"-y",
"@mukundakatta/citecite-mcp"
]
}
}
}
Run commandnpx -y @mukundakatta/citecite-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@mukundakatta/citecite-mcp0.1.1

Tools

3

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
atenumNoend | position
textstringYesThe text to annotate.
positionintegerNoRequired when at='position'. Insertion offset in chars.
citationsarrayYesCitations to insert. Each has an idx (the visible number) and an optional source_id (opaque key your RAG layer uses).

Details

From the project README

@mukundakatta/citecite-mcp

MCP server for RAG citation markers. Inject [N] markers into LLM output, parse them back when post-processing, or strip them entirely.

Tools

  • inject_citations(text, citations, at?) — append [1] [2] [3] markers at the end of text, or insert at a position offset.
  • parse_citations(text) — return every [N] found in source order with position, idx, and marker length.
  • strip_citations(text) — remove every [N] marker.

Install — Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "citecite": {
      "command": "npx",
      "args": ["-y", "@mukundakatta/citecite-mcp"]
    }
  }
}

Install — Cursor / Cline / Windsurf / Zed

Same shape in each tool's MCP config. Transport is stdio over npx -y @mukundakatta/citecite-mcp.

Use case

You ran a RAG pipeline. The LLM produced an answer. The retrieval layer told you which source chunks were used. Now the LLM (a second pass, or the same agent) needs to inject [1] [2] markers tied to those sources, or to parse markers back out of an existing piece of text. That's what this is for.

License

MIT OR Apache-2.0.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.