MCP servers · arrayo

smart-context-mcp: MCP server for compressing AI agent code context

An MCP server that compresses code context and stores command output so AI agents use fewer tokens when reading, searching and navigating code.

This text was machine-translated from the publisher's own information and has not been checked by a human editor. The publisher's original text is the reference.

This resource was imported automatically from the sources listed below and has not been reviewed by the AI Gate team yet. The description is the publisher's own, as published. Check the repository before installing.

What it does

The server provides MCP tools for reading, searching and managing code context. Rather than loading full files or returning large search results, it compresses the information and keeps what matters for the task. The latest release adds smart_code, which navigates JavaScript and TypeScript by symbol name and supports definitions, references, implementations, diagnostics, impact analysis and scope-aware rename. It also adds smart_output, a persistent store for shell, test, build, lint and diff output, so earlier results can be retrieved without rerunning the command.

Someone would reach for it when an AI agent works through debugging, code review, refactoring, testing or architecture tasks and token usage is a concern. The publisher reports up to 90% token reduction, measured on its own project, with workflow-level figures of roughly 85 to 90%. Multi-step agent flows can use a shared token budget across calls to stay under a set ceiling.

Running it involves storing data in SQLite, which migrates automatically on first run. Semantic features use the typescript package already in the project and fall back to a lower-precision provider when it is absent. Automatic output capture is opt-in through an environment variable, and retention limits are configurable. Rename runs as a dry run by default and writes nothing until it is explicitly called for a real write.

Limitations and requirements

Semantic navigation applies to JavaScript and TypeScript only. Without the typescript package, the semantic engine uses a fallback provider. Automatic output capture is off unless DEVCTX_OUTPUT_STORE is set to true. Semantic expansion in smart_context is off by default. Rename does not write files unless dryRun is turned off. The name-collision check is heuristic and only blocks a rename with strict set to true, because it does not verify scope overlap. Impact risk levels are labelled heuristic and are a ranking aid, not semantic certainty. Output store operations degrade with a degraded flag when SQLite is unavailable or locked rather than throwing.

Safety

Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.

  • Runs code or changes an assistant's behaviour, as every resource of this type does. This is not a finding about this one.

Sources

  • Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
    io.github.Arrayo/smart-context-mcp

    Reduces AI agent token usage by 90% via context compression and task checkpoint persistence.

    v1.21.0
    As shown on registry.modelcontextprotocol.io when we last read it

Part of

MCP servers
awslabs

MCP servers for AWS (AWS Labs)

A large open-source collection of MCP servers from AWS Labs for building and operating on AWS: documentation, infrastructure, databases, AI services, cost and more.

9.9K GitHub starsCloud & DevOpsData & databases
Updated 30 Nov 2026
MCP servers
hashicorp

Terraform MCP Server (HashiCorp)

HashiCorp's MCP server that gives an assistant current Terraform Registry information on providers, modules and policies, and can manage HCP Terraform workspaces.

1.6K GitHub starsCloud & DevOpsSoftware development
Updated 30 Nov 2026
MCP servers
redis

Redis MCP Server

Redis's official MCP server that lets an AI assistant store, read and search data in a Redis database, including streams, JSON documents and vector indexes.

642 GitHub starsData & databasesSoftware development
Updated 30 Nov 2026
MCP servers
supabase-community

Supabase MCP Server

Supabase's MCP server that connects an AI assistant to your Supabase project to design tables, run queries, read configuration and look up documentation.

Data & databasesSoftware development
Updated 30 Nov 2026
smart-context-mcp: MCP server for compressing AI agent code context | AI Gate Discover