← Back to directory
L

LLM Context

Community
Smart context management for LLM development workflows.
GitHub source repository ↗
★ 306 Stars Category · Dev Tools Very popular Source revision 6ab2ff14fe4f
53FMRS · D
Reliability
8/20
Security and permissions
10/20
Maintenance
12/20
Documentation
12/20
Setup experience
11/20

LLM Context is a practical MCP server focused on simplifying code sharing through rule-driven context management. It offers flexible customization and intelligent file selection, making it ideal for integration with MCP-capable tools like Claude Desktop. Community-maintained with quality code, but users should be mindful of permissions and potential sensitive information risks.

Read the FMRS scoring method →

LLM Context is a community-maintained MCP server that shares relevant project files with large language models via stdio, using rule-based customization. It enables intelligent file selection, composable rules, code excerpting, and on-demand file retrieval through MCP tools (lc_outlines, lc_preview, lc_missing). It is developed by cyberchitta and licensed under Apache-2.0.

Tools

lc_outlines
Generate excerpted context from current rule.
lc_preview
Validate rule effectiveness (file selection and size) before use.
lc_missing
Fetch specific files or implementations on demand.

Setup

Install via pip: pip install llm-context. Then add the MCP server to Claude Desktop configuration: in claude_desktop_config.json, set an mcpServers entry with command uvx and args --from llm-context lc-mcp.

claude_desktop_config.json
{
  "mcpServers": {
    "llm-context": {
      "command": "uvx",
      "args": [
        "--from",
        "llm-context",
        "lc-mcp"
      ]
    }
  }
}

Fit and risk

Best for

  • Developers using LLM-assisted development with Claude Desktop or other MCP-supported chat interfaces.
  • Teams needing to provide precise project context to AI agents.
  • Those who want to reduce manual copy-paste and optimize token usage.

Not for

  • Users who don't need to share code with LLMs.
  • Users in environments without MCP support (though CLI is still available).
  • High-security production requiring official maintenance (this is community project).

Required permissions

  • Read project files: requires access to project directory to select and read files.
  • Execute command-line operations: needs shell access for `lc-*` commands.
  • Optional clipboard access: `lc-context` copies to clipboard by default.

Risks and side effects

  • Sensitive data leakage: shared files may contain sensitive info; choose carefully.
  • Dependency on third-party tools: requires `uvx` or `pip`; may be affected by network.
  • Misconfiguration: incorrect rules may lead to oversized or missing context.

Troubleshooting

  1. Installation: ensure `llm-context` is properly installed and `lc-mcp` command is available.
  2. MCP configuration: verify command and args in `claude_desktop_config.json` are correct.
  3. Logs: check Claude Desktop logs for MCP connection errors.
  4. CLI test: try `lc-select` or `lc-context` to see if they work.

Use cases

Quickly share relevant project files to LLM in chat interfaces.
Create reusable context rules for specific tasks (e.g., code review, documentation).
Let AI agents fetch additional files automatically via MCP or CLI.

Supported clients

Claude DesktopFull support