Sponsored by Deepsite.site

Lenspr

Created By
kyrylopra month ago
Code intelligence MCP server that makes AI coding safer. Builds a dependency graph of your entire codebase so Claude, Cursor, or any MCP client knows what breaks before making changes. 60+ tools for impact analysis, health scoring, dead code detection, and architecture enforcement. Built for vibecoders who ship fast and teams who need reliability. Supports Python, TypeScript, JavaScript.
Content

LensPR: Safe Vibecoding. Code Intelligence for AI Agents

Your AI writes code fast. LensPR makes sure it doesn't break things along the way.

The Problem

AI coding assistants (Claude Code, Cursor, Copilot) edit one file at a time. They don't see that the function they're refactoring has 15 callers across 8 files, zero tests, and handles authentication for every endpoint in your app. They change it, something breaks three files away, and you spend an hour figuring out what went wrong.

The Solution

LensPR parses your codebase into a dependency graph and gives your AI 60+ tools to understand the full picture before making changes. One MCP call returns the function's source, all callers, all callees, related tests, and impact severity. No more blind edits.

For Vibecoders

You build fast with AI. You ship. You don't want to slow down, but you also don't want your app to quietly fall apart. LensPR is your safety net:

  • Health scoring (A to F): Think of it as a fitness tracker for your codebase. See at a glance whether things are improving or degrading
  • Impact analysis: Before any change, the AI sees "this function has 15 callers, 0 tests, severity: CRITICAL" and adjusts its approach
  • Dead code detection: Find functions that nothing calls anymore. Stop maintaining ghost code
  • NFR checks: Flags missing error handling, hardcoded secrets, endpoints without authentication
  • Architecture rules: Set boundaries like "frontend must not import backend directly" and they're enforced automatically on every edit

For Teams and Professional Developers

  • Cross-language tracing: Connects React frontend to API routes to database queries in one graph. From button click to DB write, visible in a single call
  • Git integration at function level: Blame, history, and commit scope per function, not per file
  • Refactoring support: Rename a function and update every reference across the project. Multi-file atomic changes with rollback on failure
  • Architecture enforcement: Define structural rules, violations are caught before code is committed
  • Session memory: Persistent notes survive context resets. Your AI picks up exactly where it left off

What Makes It Different

LensPR is not a linter. A linter says "function is too long." LensPR says "function is too long AND 15 other functions depend on it AND it has 0 tests AND it handles authentication AND if it breaks, login, registration, and every admin page stop working."

Quick Start

  • pip install 'lenspr[all]'
  • lenspr init .
  • lenspr setup .

Restart your IDE. Your AI now has access to lens_* tools. Everything runs locally.

Your code never leaves your machine.

Supports: Python, TypeScript, JavaScript

Works with: Claude Code, Cursor, and any MCP-compatible client

License: MIT

GitHub: https://github.com/kyrylopr/lenspr

Server Config

{
  "mcpServers": {
    "lenspr": {
      "command": "lenspr",
      "args": [
        "serve",
        "."
      ],
      "env": {}
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Serper MCP ServerA Serper MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
Playwright McpPlaywright MCP server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Amap Maps高德地图官方 MCP Server