Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI โ†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE โ†— (opens in a new tab)
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿง  Knowledge & Memory
  3. Retrieval Lens
Retrieval Lens logo
Health: ActiveRecent health check succeeded.Last checked 9/6/2026, 11:47:58 PM

Retrieval Lens

User RatingsBe the first to rate and review this MCP server!
View Repository2 GitHub StarsTotal stargazers on GitHub for the source repository (2 stars).Visit Website
ragretrievalobservabilitydeveloper-tools

MCP server for logging, replaying, comparing, and analyzing RAG retrieval runs locally.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "vbj1808-retrieval-lens": {
      "command": "npx",
      "args": [
        "-y",
        "retrieval-lens"
      ]
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives๐Ÿง  More in Knowledge & Memory

Overview

retrieval-lens records the chunks, scores, sources, and rankings returned during RAG retrieval. Use it to determine whether an incorrect answer came from retrieval or generation, and to audit changes between runs. It stores data locally in SQLite and supports LangChain and LlamaIndex adapters.

Use cases

โ€ขLog retrieval results after each RAG pipeline step
โ€ขReplay the chunks shown to a model before an answer
โ€ขCompare retrieval runs after an embedding refresh
โ€ขAnalyze score distributions and top sources over time

Key features

โ€ขRecord queries, chunks, scores, sources, and rankings
โ€ขReplay retrieval data for a specific answer
โ€ขDiff two retrieval runs with source matching
โ€ขAggregate score distributions and top sources
โ€ขStore retrieval data locally in SQLite
โ€ขProvide LangChain and LlamaIndex adapter examples

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Retrieval Lens.

Extracted Tool Capabilities
Record queries, chunks, scores, sources, and rankings
Replay retrieval data for a specific answer
Diff two retrieval runs with source matching
Aggregate score distributions and top sources
Store retrieval data locally in SQLite
Provide LangChain and LlamaIndex adapter examples

Documentation Overview

retrieval-lens

A black-box flight recorder for RAG retrieval inside MCP agents.

retrieval-lens is an MCP server that logs every retrieval step your RAG agent makes โ€” what chunks were retrieved, their scores, sources, and rankings โ€” so you can audit, replay, and diff retrieval runs after the fact.


The Problem

When a RAG agent gives a wrong answer, you need to know: did retrieval fail, or did generation fail? Right now there's no easy way to answer that. Your observability tool shows you the LLM call. It doesn't show you which chunks the model saw before it answered, what scores they had, or how retrieval changed between yesterday and today.

retrieval-lens fixes that. Every retrieval run is logged. Nothing is hidden.


Demo

When your RAG agent gives a wrong answer, ask retrieval-lens what it saw:

typescript
await mcp.call("retrieval_diff", {
  run_id_a: "support-bot-before-embedding-refresh",
  run_id_b: "support-bot-after-embedding-refresh",
  match_by: "source"
});

See docs/demo-diff.png for real output from Claude Code.


MCP Tools

ToolWhat it does
retrieval_observeLog a retrieval run โ€” query, chunks, scores, sources, rankings
retrieval_queryReplay what the model saw before a specific answer
retrieval_diffCompare two retrieval runs โ€” what changed, what score drifted
retrieval_statsAggregate score distributions, top sources, runs over time

Quickstart

Run retrieval-lens directly with npx:

Terminal
npx retrieval-lens

Add retrieval-lens to Claude Code with one command:

Terminal
claude mcp add retrieval-lens npx retrieval-lens

Then call retrieval_observe after every retrieval step in your RAG pipeline:

typescript
await mcp.call("retrieval_observe", {
  run_id: crypto.randomUUID(),
  query: "what is the refund policy?",
  chunks: [
    { content: "Refunds are processed within 5 days...", score: 0.91, source: "policy.md", rank: 1 },
    { content: "Contact support for refund requests...", score: 0.74, source: "faq.md", rank: 2 }
  ],
  pipeline_tag: "support-bot"
});

Adapters

LangChain

See examples/langchain-adapter.ts

LlamaIndex

See examples/llamaindex-adapter.ts


Why not LangSmith / Langfuse?

Those are full observability platforms. retrieval-lens is surgical:

  • Local-first โ€” SQLite, zero signup, no data leaves your machine
  • MCP-native โ€” one config line, works in any MCP client
  • Retrieval-only โ€” focused on the layer where most RAG failures actually happen

Status

๐Ÿšง Active development. Harness-first build using harness engineering principles.

  • F05 โ€” scaffold
  • F01 โ€” retrieval_observe
  • F02 โ€” retrieval_query
  • F03 โ€” retrieval_diff
  • F04 โ€” retrieval_stats

License

MIT


Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Knowledge & Memory View all alternatives
  • Moxie Docs MCP logoMoxie Docs MCP
    โ˜… Featured

    MCP & Agent Skills for Automated Documentation, and codebase conventions + context

    ๐Ÿง  Knowledge & Memory21 views
    Compare vs Moxie Docs MCP โ†’
  • Scrivener MCP logoScrivener MCP

    Connect Scrivener 3 writing projects to Claude and other AI assistants. 47 tools for document management, writing analysis, semantic search, character/plot memory, and content enhancement. Progressive skill loading, relationship engine with HMS triplets, and JS fallback for offline semantic search. npm i -g scrivener-mcp

    ๐Ÿง  Knowledge & Memory16 views
    Compare vs Scrivener MCP โ†’
  • Codebase Memory MCP logoCodebase Memory MCP

    Code-intelligence engine that indexes a repo into a persistent knowledge graph โ€” functions, classes, call chains, HTTP routes, cross-service links. 159 languages via tree-sitter + Hybrid LSP, sub-ms structural queries, 99% fewer tokens than grep. Single static binary, zero dependencies, 100% local. npx codebase-memory-mcp

    ๐Ÿง  Knowledge & Memory7 views
    Compare vs Codebase Memory MCP โ†’
  • Context7 logoContext7

    Up-to-date code documentation for LLMs and AI code editors.

    ๐Ÿง  Knowledge & Memory7 views
    Compare vs Context7 โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
2
Stargazers on the source repository.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet โ€” be the first to share how this listing worked for you.

Frequently Asked Questions about Retrieval Lens

It records retrieval queries, chunks, scores, sources, and rankings for each run.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRetrieval Lens AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/vbj1808-retrieval-lens?style=directory)](https://allmcps.com/mcp/vbj1808-retrieval-lens)
HTML Embed
<a href="https://allmcps.com/mcp/vbj1808-retrieval-lens"><img src="https://allmcps.com/api/badge/vbj1808-retrieval-lens?style=directory" alt="Retrieval Lens on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿง Knowledge & Memory
PricingFree
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
AuthNo auth required
LicenseMIT
Last updatedAug 9, 2026
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars2
GitHub Star CountTotal stargazers on GitHub representing community popularity (2 stars).
47Quality signal: Fair ยท 47/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools23/30
Adoption & activity2/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 21d ago via OSV.dev ยท retrieval-lens (npm)

โ˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server โ†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿง  Knowledge & Memory โ†’Best MCP servers for Memory & Knowledge โ†’Alternatives to Retrieval Lens โ†’Install in Claude DesktopInstall in CursorInstall in VS Code