scope-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scope-mcpFind all references to validate_token and show its call hierarchy"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
scope-mcp
A tool that gives your AI coding assistant superpowers. Instead of guessing what your code does, it gets real answers straight from the same engines VS Code uses — so it actually understands functions, classes, types, and where things connect.
No setup. No indexing. Just works.
What's the problem?
When you ask an AI to "find where get_lsp is called," most tools do a text search — like Ctrl+Shift+F. That returns everything named get_lsp: the definition, comments, imports, false positives. You have to dig through the noise.
┌─ grep (text search) ─────────────────────┐
│ project.py:75 def get_lsp(self, lang) │ ← definition (not a call)
│ project.py:110 return await get_lsp(lang)│ ← actual call
│ project.py:117 lsp = await get_lsp(lang) │ ← actual call
│ project.py:81 cfg = LSP_REGISTRY... │ ← noise
│ project.py:109 async def get_lsp_for... │ ← noise
│ 5 results · 3 are noise │
└───────────────────────────────────────────┘
┌─ scope (smart search) ────────────────────┐
│ [call site] project.py:110 │
│ [call site] project.py:117 │
│ 2 results · 0 noise │
└───────────────────────────────────────────┘Scope asks the compiler instead. You get only what you actually asked for.
→ See the benchmarks — up to 25x fewer tokens, 0% false positives.
Related MCP server: Carto MCP Server
What you can do with it
Instead of digging through files... | Just ask scope... | You get |
Grepping for a function name and filtering out junk |
| Only the places where it's actually called — no noise |
Reading a whole file to figure out what's in it |
| A clean summary: language, line count, every function and class |
Hunting through 50 files to find where an interface is used |
| One answer with all the implementations |
Tracing who calls what by hand |
| A tree of callers and callees, 3 levels deep |
Scanning a big diff to see what changed |
| Just the changed files and affected symbols |
How it works
Scope looks at your project — it spots what languages you're using (Python, TypeScript, Rust, Go, C++) from files like
package.jsonorCargo.toml.It sets up the brain — launches the same language engine your editor uses (pyright, tsserver, rust-analyzer, gopls). If missing, it installs one automatically.
Your AI asks, scope answers — every question hits that engine live. No stale data, no sync jobs, no waiting.
AI Assistant (Claude, Codex, etc.) ←→ scope ←→ Language Engine
(pyright, tsserver, etc.)Setup
Choose the path that fits your workflow:
🚀 Auto-install (recommended)
If you have uv installed, uvx will auto-install scope on first run — no pip install needed.
Claude Desktop
File: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"scope": {
"command": "uvx",
"args": ["scope-mcp", "--project", "."]
}
}
}Cursor
Settings → Cursor Settings → MCP → Add new MCP server
Name: scope
Type: command
Command: uvx scope-mcp --project .Windsurf
File: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"scope": {
"command": "uvx",
"args": ["scope-mcp", "--project", "."]
}
}
}VS Code (GitHub Copilot)
File: .vscode/mcp.json (project-level) or ~/AppData/Roaming/Code/User/globalStorage/github.copilot-chat/mcp.json
{
"servers": {
"scope": {
"command": "uvx",
"args": ["scope-mcp", "--project", "."]
}
}
}📦 Manual install
pip install scope-mcpThen use scope instead of uvx scope-mcp in your config:
command: scope
args: ["--project", "."]🔧 From source
git clone https://github.com/deviprasadshetty-dev/scope.git
cd scope
pip install -e .Optional extras: rg (ripgrep) for text searches, git for change tracking.
🤖 One-click agent setup
Copy-paste this to your AI coding agent and it will set up scope for you automatically:
Install and configure scope-mcp for this project.
Check if
uvis installed — if yes, useuvx scope-mcp --project .in the MCP config (it auto-installs on first run). If not,pip install scope-mcpfirst and usescope --project ..Find my editor's MCP config and add the scope server entry:
Claude Desktop:
claude_desktop_config.jsonCursor: Cursor Settings → MCP
Windsurf:
mcp_config.jsonVS Code Copilot:
.vscode/mcp.jsonVerify — use the
scope_statustool to confirm it's running.Actually do it — don't just show me the config, edit the file.
Languages scope understands
Language | Detected when it sees... | Scope handles setup |
Python |
| ✅ Installs pyright automatically |
TypeScript / JavaScript |
| ✅ Installs tsserver automatically |
Rust |
| ✅ Installs rust-analyzer automatically |
Go |
| ✅ Installs gopls automatically |
C / C++ |
| ⚠️ You install clangd manually |
Project layout
scope/
├── __init__.py
├── __main__.py # Where scope starts — just runs `scope --project .`
├── server.py # All the commands (tools) your AI can call
├── project.py # Figures out your project and starts language engines
├── lsp_client.py # Talks to language engines behind the scenes
└── lsp_registry.py # Knows which engine to use for each languageRequirements
Python 3.11 or newer
ripgrep (optional, for text search)
git (optional, for change tracking)
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Codebase graphs, caller impact analysis, and recorded project context for AI coding agents.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding tools to query your live codebase for routes, import graph, domain context, and blast radius, eliminating hallucinations about project structure.50 npm76MIT
- AlicenseNot gradedqualityDmaintenanceExposes type-aware code navigation and fast file search to AI agents via language servers, enabling definitions, references, symbols, and file lookup without reading entire codebases.829 npmMIT
- AlicenseNot gradedqualityDmaintenanceSupercharges AI coding agents with semantic code intelligence, providing pre-built knowledge graphs for surgical context, faster answers, and fewer tool calls.MIT