LLM Context is a tool that streamlines the integration of code and text projects into Large Language Model chat interfaces. It intelligently selects relevant files from your projects and provides both clipboard workflow via command line and direct LLM integration through the Model Context Protocol (MCP).
Install LLM Context using uv:
uv tool install "llm-context>=0.3.0"
To upgrade to the latest version:
uv tool upgrade llm-context
Warning: LLM Context is under active development. Updates may overwrite configuration files prefixed with
lc-
. Consider version controlling your configuration files.
Add to 'claude_desktop_config.json':
{
"mcpServers": {
"CyberChitta": {
"command": "uvx",
"args": ["--from", "llm-context", "lc-mcp"]
}
}
}
Once configured, you can start working with your project by either:
Asking Claude: "I would like to work with my project" Claude will prompt you for the project root path.
Directly specifying: "I would like to work with my project /path/to/your/project" Claude will automatically load the project context.
For best results, combine initial context through Claude's Project Knowledge UI with dynamic code access via MCP. This provides both comprehensive understanding and access to latest changes.
Navigate to your project's root directory
Initialize repository (only once):
lc-init
Select files:
lc-sel-files
Generate and copy context:
lc-context
With optional flags:
lc-context -p # Include prompt instructions
lc-context -u # Include user notes
lc-context -f output.txt # Write to file
Paste the context into your preferred LLM interface:
-p
flag for instructions)When the LLM requests additional files:
lc-clip-files
lc-init
: Initialize project configurationlc-set-rule <n>
: Switch between different selection ruleslc-sel-files
: Select files for inclusionlc-sel-outlines
: Select files for outline generationlc-context [-p] [-u] [-f FILE]
: Generate and copy contextlc-prompt
: Generate project instructions for LLMslc-clip-files
: Process LLM file requestslc-changed
: List files modified since last context generationlc-outlines
: Generate outlines for code fileslc-clip-implementations
: Extract code implementations requested by LLMsLLM Context uses .gitignore
-like patterns to intelligently select which files to include.
Smart Code Outlines: Generate high-level structure of your codebase
lc-outlines
Definition Implementation Extraction: Extract specific code implementations
lc-clip-implementations
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "CyberChitta" '{"command":"uvx","args":["--from","llm-context","lc-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"CyberChitta": {
"command": "uvx",
"args": [
"--from",
"llm-context",
"lc-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"CyberChitta": {
"command": "uvx",
"args": [
"--from",
"llm-context",
"lc-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect