Context Please
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Your entire codebase as Claude's context
Note: This is a fork of claude-context by Zilliz, maintained by PleaseAI with additional features and improvements.
Extensions Status: Chrome and VSCode extensions are currently TBD (To Be Determined) and not yet available in this fork.
Context Please is an MCP plugin that adds semantic code search to Claude Code and other AI coding agents, giving them deep context from your entire codebase.
🧠 Your Entire Codebase as Context: Claude Context uses semantic search to find all relevant code from millions of lines. No multi-round discovery needed. It brings results straight into the Claude's context.
💰 Cost-Effective for Large Codebases: Instead of loading entire directories into Claude for every request, which can be very expensive, Claude Context efficiently stores your codebase in a vector database and only uses related code in context to keep your costs manageable.
🚀 Demo
Model Context Protocol (MCP) allows you to integrate Claude Context with your favorite AI coding assistants, e.g. Claude Code.
Related MCP server: mcplens
Quick Start
Prerequisites
🚀 New: Zero-Config Local Mode with FAISS
You can now use Context Please with no external database required! Simply provide an OpenAI API key, and FAISS will handle local storage automatically. Perfect for getting started quickly or working with small-to-medium codebases.
For production deployments or large codebases, consider using Zilliz Cloud or Qdrant:
Claude Context needs a vector database. You can sign up on Zilliz Cloud to get an API key.

Copy your Personal Key to replace your-zilliz-cloud-api-key in the configuration examples.
You need an OpenAI API key for the embedding model. You can get one by signing up at OpenAI.
Your API key will look like this: it always starts with sk-.
Copy your key and use it in the configuration examples below as your-openai-api-key.
Configure MCP for Claude Code
System Requirements:
Node.js >= 20.0.0 and < 24.0.0
Claude Context is not compatible with Node.js 24.0.0, you need downgrade it first if your node version is greater or equal to 24.
Configuration
Option 1: Local Mode with FAISS (Recommended for Getting Started)
The simplest way to get started - no external database required:
claude mcp add context-please \
-e OPENAI_API_KEY=sk-your-openai-api-key \
-- npx @pleaseai/context-please-mcp@latestOption 2: Cloud Mode with Zilliz (For Production/Large Codebases)
For larger codebases or production deployments:
claude mcp add context-please \
-e OPENAI_API_KEY=sk-your-openai-api-key \
-e MILVUS_TOKEN=your-zilliz-cloud-api-key \
-- npx @pleaseai/context-please-mcp@latestSee the Claude Code MCP documentation for more details about MCP server management.
Other MCP Client Configurations
Codex CLI uses TOML configuration files:
Create or edit the
~/.codex/config.tomlfile.Add the following configuration:
# IMPORTANT: the top-level key is `mcp_servers` rather than `mcpServers`.
[mcp_servers.context-please]
command = "npx"
args = ["@pleaseai/context-please-mcp@latest"]
env = { "OPENAI_API_KEY" = "your-openai-api-key", "MILVUS_TOKEN" = "your-zilliz-cloud-api-key" }
# Optional: override the default 10s startup timeout
startup_timeout_ms = 20000Save the file and restart Codex CLI to apply the changes.
Gemini CLI requires manual configuration through a JSON file:
Create or edit the
~/.gemini/settings.jsonfile.Add the following configuration:
{
"mcpServers": {
"context-please": {
"command": "npx",
"args": ["@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Save the file and restart Gemini CLI to apply the changes.
Create or edit the ~/.qwen/settings.json file and add the following configuration:
{
"mcpServers": {
"claude-context": {
"command": "npx",
"args": ["@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
{
"mcpServers": {
"context-please": {
"command": "npx",
"args": ["-y", "@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Go to: Settings -> MCP -> Add MCP Server
Add the following configuration to your Void MCP settings:
{
"mcpServers": {
"context-please": {
"command": "npx",
"args": ["-y", "@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Add to your Claude Desktop configuration:
{
"mcpServers": {
"claude-context": {
"command": "npx",
"args": ["@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Windsurf supports MCP configuration through a JSON file. Add the following configuration to your Windsurf MCP settings:
{
"mcpServers": {
"context-please": {
"command": "npx",
"args": ["-y", "@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}The Claude Context MCP server can be used with VS Code through MCP-compatible extensions. Add the following configuration to your VS Code MCP settings:
{
"mcpServers": {
"context-please": {
"command": "npx",
"args": ["-y", "@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Cherry Studio allows for visual MCP server configuration through its settings interface. While it doesn't directly support manual JSON configuration, you can add a new server via the GUI:
Navigate to Settings → MCP Servers → Add Server.
Fill in the server details:
Name:
claude-contextType:
STDIOCommand:
npxArguments:
["@pleaseai/context-please-mcp@latest"]Environment Variables:
OPENAI_API_KEY:your-openai-api-keyMILVUS_ADDRESS:your-zilliz-cloud-public-endpointMILVUS_TOKEN:your-zilliz-cloud-api-key
Save the configuration to activate the server.
Cline uses a JSON configuration file to manage MCP servers. To integrate the provided MCP server configuration:
Open Cline and click on the MCP Servers icon in the top navigation bar.
Select the Installed tab, then click Advanced MCP Settings.
In the
cline_mcp_settings.jsonfile, add the following configuration:
{
"mcpServers": {
"claude-context": {
"command": "npx",
"args": ["@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Save the file.
To configure Claude Context MCP in Augment Code, you can use either the graphical interface or manual configuration.
A. Using the Augment Code UI
Click the hamburger menu.
Select Settings.
Navigate to the Tools section.
Click the + Add MCP button.
Enter the following command:
npx @pleaseai/context-please-mcp@latestName the MCP: Context Please.
Click the Add button.
B. Manual Configuration
Press Cmd/Ctrl Shift P or go to the hamburger menu in the Augment panel
Select Edit Settings
Under Advanced, click Edit in settings.json
Add the server configuration to the
mcpServersarray in theaugment.advancedobject
"augment.advanced": {
"mcpServers": [
{
"name": "context-please",
"command": "npx",
"args": ["-y", "@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
]
}Roo Code utilizes a JSON configuration file for MCP servers:
Open Roo Code and navigate to Settings → MCP Servers → Edit Global Config.
In the
mcp_settings.jsonfile, add the following configuration:
{
"mcpServers": {
"claude-context": {
"command": "npx",
"args": ["@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
}
}Save the file to activate the server.
Zencoder offers support for MCP tools and servers in both its JetBrains and VS Code plugin versions.
Go to the Zencoder menu (...)
From the dropdown menu, select
ToolsClick on the
Add Custom MCPAdd the name (i.e.
Context Please) and server configuration from below, and make sure to hit theInstallbutton
{
"command": "npx",
"args": ["@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"MILVUS_ADDRESS": "your-zilliz-cloud-public-endpoint",
"MILVUS_TOKEN": "your-zilliz-cloud-api-key"
}
}
Save the server by hitting the
Installbutton.
For LangChain/LangGraph integration examples, see this example.
The server uses stdio transport and follows the standard MCP protocol. It can be integrated with any MCP-compatible client by running:
npx @pleaseai/context-please-mcp@latestUsage in Your Codebase
Open Claude Code
cd your-project-directory claudeIndex your codebase:
Index this codebaseCheck indexing status:
Check the indexing statusStart searching:
Find functions that handle user authentication
🎉 That's it! You now have semantic code search in Claude Code.
Environment Variables Configuration
For more detailed MCP environment variable configuration, see our Environment Variables Guide.
Using FAISS for Local-Only Deployments
Context Please now supports FAISS as a zero-configuration, local-only vector database option! This is perfect for:
🚀 Quick Start: No external database setup required
💻 Local Development: All data stays on your machine
💰 Zero Cost: No cloud services or infrastructure costs
📦 Small-to-Medium Codebases: Ideal for personal projects and teams
Quick Start with FAISS
Simply omit the Milvus/Qdrant configuration, and Context Please will automatically use FAISS:
claude mcp add context-please \
-e OPENAI_API_KEY=sk-your-openai-api-key \
-- npx @pleaseai/context-please-mcp@latestThat's it! Your code will be indexed to ~/.context/faiss-indexes/ automatically.
Advanced FAISS Configuration
You can customize the storage directory:
claude mcp add context-please \
-e OPENAI_API_KEY=sk-your-openai-api-key \
-e FAISS_STORAGE_DIR=/path/to/your/indexes \
-- npx @pleaseai/context-please-mcp@latestOr explicitly specify FAISS as the vector database:
{
"mcpServers": {
"context-please": {
"command": "npx",
"args": ["@pleaseai/context-please-mcp@latest"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"VECTOR_DB_TYPE": "faiss-local",
"FAISS_STORAGE_DIR": "~/.context/faiss-indexes"
}
}
}
}FAISS Features
✅ Hybrid Search: Combines dense (semantic) + sparse (BM25) vectors
✅ File-based Persistence: Indexes saved as
.indexfiles✅ Auto-selection: Defaults to FAISS when no external DB configured
✅ Same Interface: Compatible with all existing tools and APIs
Limitations
⚠️ Memory: Entire index loads into RAM (suitable for ~100K files)
⚠️ Concurrency: Single-process file access
⚠️ Scalability: For larger codebases, consider Milvus or Qdrant
For production deployments or large codebases (>100K files), we recommend using Milvus or Qdrant.
Using Different Embedding Models
To configure custom embedding models (e.g., text-embedding-3-large for OpenAI, voyage-code-3 for VoyageAI), see the MCP Configuration Examples for detailed setup instructions for each provider.
File Inclusion & Exclusion Rules
For detailed explanation of file inclusion and exclusion rules, and how to customize them, see our File Inclusion & Exclusion Rules.
Available Tools
1. index_codebase
Index a codebase directory for hybrid search (BM25 + dense vector).
2. search_code
Search the indexed codebase using natural language queries with hybrid search (BM25 + dense vector).
3. clear_index
Clear the search index for a specific codebase.
4. get_indexing_status
Get the current indexing status of a codebase. Shows progress percentage for actively indexing codebases and completion status for indexed codebases.
📊 Evaluation
Our controlled evaluation demonstrates that Claude Context MCP achieves ~40% token reduction under the condition of equivalent retrieval quality. This translates to significant cost and time savings in production environments. This also means that, under the constraint of limited token context length, using Claude Context yields better retrieval and answer results.

For detailed evaluation methodology and results, see the evaluation directory.
🏗️ Architecture

🔧 Implementation Details
🔍 Hybrid Code Search: Ask questions like "find functions that handle user authentication" and get relevant, context-rich code instantly using advanced hybrid search (BM25 + dense vector).
🧠 Context-Aware: Discover large codebase, understand how different parts of your codebase relate, even across millions of lines of code.
⚡ Incremental Indexing: Efficiently re-index only changed files using Merkle trees.
🧩 Intelligent Code Chunking: Analyze code in Abstract Syntax Trees (AST) for chunking.
🗄️ Scalable: Integrates with vector databases (Milvus, Zilliz Cloud, Qdrant) for scalable vector search, no matter how large your codebase is.
🛠️ Customizable: Configure file extensions, ignore patterns, and embedding models.
Core Components
Context Please is a monorepo containing main packages:
@pleaseai/context-please-core: Core indexing engine with embedding and vector database integration@pleaseai/context-please-mcp: Model Context Protocol server for AI agent integrationVSCode Extension: TBD (To Be Determined)
Chrome Extension: TBD (To Be Determined)
Supported Technologies
Vector Databases: Milvus, Zilliz Cloud(fully managed vector database as a service), Qdrant
Code Splitters: AST-based splitter (with automatic fallback), LangChain character-based splitter
Languages: TypeScript, JavaScript, Python, Java, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, Scala, Markdown
Development Tools: VSCode, Model Context Protocol
📦 Other Ways to Use Claude Context
While MCP is the recommended way to use Claude Context with AI assistants, you can also use it directly or through the VSCode extension.
Build Applications with Core Package
The @pleaseai/context-please-core package provides the fundamental functionality for code indexing and semantic search.
import { Context, MilvusVectorDatabase, OpenAIEmbedding } from '@pleaseai/context-please-core';
// Initialize embedding provider
const embedding = new OpenAIEmbedding({
apiKey: process.env.OPENAI_API_KEY || 'your-openai-api-key',
model: 'text-embedding-3-small'
});
// Initialize vector database
const vectorDatabase = new MilvusVectorDatabase({
address: process.env.MILVUS_ADDRESS || 'your-zilliz-cloud-public-endpoint',
token: process.env.MILVUS_TOKEN || 'your-zilliz-cloud-api-key'
});
// Create context instance
const context = new Context({
embedding,
vectorDatabase
});
// Index your codebase with progress tracking
const stats = await context.indexCodebase('./your-project', (progress) => {
console.log(`${progress.phase} - ${progress.percentage}%`);
});
console.log(`Indexed ${stats.indexedFiles} files, ${stats.totalChunks} chunks`);
// Perform semantic search
const results = await context.semanticSearch('./your-project', 'vector database operations', 5);
results.forEach(result => {
console.log(`File: ${result.relativePath}:${result.startLine}-${result.endLine}`);
console.log(`Score: ${(result.score * 100).toFixed(2)}%`);
console.log(`Content: ${result.content.substring(0, 100)}...`);
});VSCode Extension
Note: VSCode extension is currently TBD (To Be Determined) and not yet available in this fork. Please use the original claude-context VSCode extension for now.
🛠️ Development
Setup Development Environment
Prerequisites
Node.js 20.x or 22.x
pnpm (recommended package manager)
Cross-Platform Setup
# Clone repository
git clone https://github.com/pleaseai/context-please.git
cd context-please
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Start development mode
pnpm devWindows-Specific Setup
On Windows, ensure you have:
Git for Windows with proper line ending configuration
Node.js installed via the official installer or package manager
pnpm installed globally:
npm install -g pnpm
# Windows PowerShell/Command Prompt
git clone https://github.com/pleaseai/context-please.git
cd context-please
# Configure git line endings (recommended)
git config core.autocrlf false
# Install dependencies
pnpm install
# Build all packages (uses cross-platform scripts)
pnpm build
# Start development mode
pnpm devBuilding
# Build all packages (cross-platform)
pnpm build
# Build specific package
pnpm build:core
pnpm build:vscode
pnpm build:mcp
# Performance benchmarking
pnpm benchmarkWindows Build Notes
All build scripts are cross-platform compatible using rimraf
Build caching is enabled for faster subsequent builds
Use PowerShell or Command Prompt - both work equally well
Testing
Context Please includes comprehensive integration tests for both the core indexing engine and MCP server.
# Run all tests (unit + integration)
pnpm test
# Run only integration tests (123 tests)
pnpm test:integration
# Run tests for specific package
cd packages/core && pnpm test # All core tests
cd packages/core && pnpm test:integration # Core integration tests only
cd packages/mcp && pnpm test:integration # MCP integration tests only
# Run specific test file
pnpm test packages/core/test/integration/indexing-workflow.integration.test.tsTest Coverage:
Core integration tests: 93 tests (100% passing)
Indexing workflow (15 tests): Basic indexing operations
Search workflow (18 tests): Semantic search and ranking
Lifecycle (17 tests): Collection management
File synchronization (24 tests): Merkle DAG-based change detection
Incremental reindex (19 tests): File add/modify/delete operations
MCP integration tests: 30 tests (100% passing)
Tool handlers: index_codebase, search_code, clear_index, get_indexing_status
For detailed testing guidelines, see docs/develop/TESTING.md.
Running Examples
# Development with file watching
cd examples/basic-usage
pnpm dev📖 Examples
Check the /examples directory for complete usage examples:
Basic Usage: Simple indexing and search example
❓ FAQ
Common Questions:
❓ For detailed answers and more troubleshooting tips, see our FAQ Guide.
🔧 Encountering issues? Visit our Troubleshooting Guide for step-by-step solutions.
📚 Need more help? Check out our complete documentation for detailed guides and troubleshooting tips.
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details on how to get started.
Package-specific contributing guides:
🗺️ Roadmap
AST-based code analysis for improved understanding
Support for additional embedding providers
Agent-based interactive search mode
Enhanced code chunking strategies
Search result ranking optimization
Robust Chrome Extension
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for semantic code search & navigation that helps AI agents work efficiently without burning through costly tokens. Instead of reading entire files, agents can search conceptually and jump directly to the specific functions, classes, and code chunks they need.121MIT
- AlicenseNot gradedqualityBmaintenanceA local MCP server that provides AI coding assistants with semantic search capabilities over codebases. It indexes code using local embeddings and exposes tools for efficient code retrieval, saving tokens and improving response quality.31 npm4MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides dynamic codebase context to Claude Code through tools like hybrid search, recent changes, and symbol definitions, enhancing AI-assisted coding with local RAG.8MIT
- AlicenseAqualityDmaintenanceMCP server for semantic code indexing using vector embeddings, enabling AI agents to maintain persistent memory of codebases through natural language queries and intelligent chunking.194MIT