MCP Catalogs
Home

llm-context.py

by cyberchitta·300·Score 50

Smart context management tool that allows sharing relevant project files with LLMs via MCP or clipboard with rule-based customization.

developer-toolsai-llmproductivity
22
Forks
3
Open issues
1 mo ago
Last commit
2d ago
Indexed

Overview

LLM Context is a Python-based tool that addresses the challenge of getting the right context into LLM conversations. It provides focused, task-specific project context through composable rules that allow intelligent file selection and filtering. The tool works both for humans using chat interfaces and AI agents with CLI access, offering features like smart code outlining, context validation, and MCP integration for seamless file access during conversations.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Daily development workflow for humans to quickly share relevant project files with LLMs
you:AI agents to create focused contexts for specific sub-tasks
you:Code review and documentation generation with task-specific rules
you:How does llm-context select files?
you:What MCP tools are provided?

When to choose this

Choose this when you need intelligent, task-specific code context management with both human-friendly commands and MCP integration for AI agents.

When NOT to choose this

Avoid if you need read/write file access (this is read-only) or prefer simpler context sharing without rule-based configuration.

Tools this server exposes

3 tools extracted from the README
  • lc_outlineslc_outlines(root_path, rule_name)

    Generate excerpted context from a specific rule in the project

  • lc_previewlc_preview(root_path, rule_name)

    Validate a rule's effectiveness by showing which files it would include

  • lc_missinglc_missing(root_path, param_type, data, timestamp)

    Fetch specific files or implementations on demand

Comparable tools

npx-contextdevincigit-mcp

Installation

# Install as a tool
uv tool install "llm-context>=0.6.0"

# MCP Integration for Claude Desktop
Add to Claude Desktop config (~//Library/Application Support/Claude/claude_desktop_config.json):
```jsonc
{
  "mcpServers": {
    "llm-context": {
      "command": "uvx",
      "args": ["--from", "llm-context", "lc-mcp"]
    }
  }
}

Initialize project:

cd your-project
lc-init

FAQ

How does llm-context select files?
It uses YAML+Markdown rules that describe what context to provide for a specific task. Rules can include/exclude files based on patterns, define excerpting strategies, and combine multiple rule components.
What MCP tools are provided?
lc_outlines - Generate excerpted context from current rule, lc_preview - Validate rule effectiveness before use, lc_missing - Fetch specific files/implementations on demand.

Compare llm-context.py with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.