Context Lens transforms any content into a **searchable knowledge base** for your AI assistant. This self-contained Model Context Protocol (MCP)
If you already use Context Lens, the context lens mcp server is the piece that lets your assistant work with it directly. Context Lens transforms any content into a searchable knowledge base for your AI assistant. This self-contained Model Context Protocol (MCP) server with built-in serverless vector storage (LanceDB) brings semantic search to your.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
Cursor — The Cursor tool exposed by this serverBenefits — ✅ Complete Code Units - Never splits functions or classes mid-way ✅ Preserved Context - Docstrings, comments, and structure stay intact ✅Configuration is passed through the environment: CONTEXT_LENS_HOME, LANCE_DB_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Context Lens's toolset — Cursor, Benefits — is a fair guide to whether it matches your workflow. It is maintained by cornelcroi; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Context Lens's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Cursor | The Cursor tool exposed by this server. |
| Benefits | ✅ **Complete Code Units** - Never splits functions or classes mid-way ✅ **Preserved Context** - Docstrings, comments, and structure stay intact ✅ **Better Search** - Find complete, understandable code snippets ✅ **Automa |
{
"mcpServers": {
"context-lens": {
"command": "uvx",
"args": ["context-lens"],
"autoApprove": ["list_documents", "search_documents"]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| CONTEXT_LENS_HOME | Configuration value read at startup. | Optional |
| LANCE_DB_PATH | Filesystem location the server is allowed to use. | Optional |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.