Skip to content
MCP server
Registry

Infimium MCP Server

Private AI context layer for semantic code search, dependency graphs, memory, and workspaces.

Infimium scores 71 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 10 tools. Filed under AI and memory. GitHub shows 26 stars. Package registries report about 460 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by infimium-aiMITTypeScript26 stars
Trust score
71Good
Trust score 71 of 100, Good

Good trust

71 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 71 comes from

22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "infimium-ai-infimium-agent": {      "command": "npx",      "args": [        "-y",        "infimium@0.3.1"      ],      "env": {        "SEARCH_API_KEY": "YOUR_SEARCH_API_KEY",        "SEARCH_PROVIDER": "",        "CODEBASE_PATH": "",        "LOCAL_DOCS_PATH": "",        "CHROMADB_HOST": "",        "OLLAMA_HOST": "",        "SHELL_ALLOWLIST": ""      }    }  }}

Environment variables

NameRequiredNotes
SEARCH_API_KEYSecretOptionalOptional Tinyfish API key for web_search.
SEARCH_PROVIDEROptionalSearch provider. Use tinyfish for the current web_search implementation.
CODEBASE_PATHOptionalAbsolute path to the codebase Infimium should index.
LOCAL_DOCS_PATHOptionalAbsolute path to local docs Infimium should index.
CHROMADB_HOSTOptionalChromaDB HTTP endpoint.
OLLAMA_HOSTOptionalOllama HTTP endpoint.
SHELL_ALLOWLISTOptionalComma-separated commands allowed by the shell tool.

Tools10Tool docs quality grade C

All capabilities
  • Inspects callers, callees, imports, and API routes.

  • Fetches full source implementation for a given symbol.

  • Converts web pages to clean Markdown context.

  • Retrieves repository context, active memory, and handoff graph.

  • Confirms MCP server connectivity and status.

  • Refreshes episodic memory, logs notes, or configures auto-updates.

  • Manages active scratchpads, completes sessions, or queries ledger.

  • Searches Markdown, text, HTML, and PDF documentation.

  • Finds code symbols by natural language meaning.

  • Performs external web searches (optional, requires Tinyfish API key).

About

Infimium

The Private Context Layer & Super Brain for AI Coding Agents.
Persistent episodic memory, deep dependency graphs, and instant AST-compact code context — 100% local, zero cloud dependencies, zero token bloat.


npm version MCP Badge MIT License GitHub Stars


Demo

Infimium demo


Why Infimium?

Modern AI coding agents face two core problems:

  1. Context Window Exhaustion: Reading massive files or dumping entire directory structures burns tokens and triggers model amnesia.
  2. Session Amnesia: Once an agent session ends, the agent loses track of what it built, why decisions were made, and what tasks remain.

Infimium solves both by acting as a local context and memory layer:

Without Infimium:
  200,000 lines of code -> Agent dumps entire files -> Context blown + slow & expensive
  grep "price calculation" -> Misses calcPropertyValue() in dependent module
  Session resets -> Agent forgets recent architectural decisions and progress

With Infimium:
  semantic_code_search("price calculation logic")
  -> services/property/calc.ts:142 · calcPropertyValue() (compact signature: ~8 tokens)
  -> Callers: getListingPrice(), estimatePropertyTax()
  -> expand_symbol("calcPropertyValue") loads only the exact function needed (~99.5% token reduction)
  -> infimium resume restores the active task, scratchpad events, and durable ledger rules instantly

Architecture Overview

flowchart TD
    subgraph Agent["AI Agents & IDEs"]
        Cursor["Cursor"]
        Windsurf["Windsurf"]
        Claude["Claude Desktop"]
        CLI["Infimium CLI"]
    end

    subgraph Protocol["Interface Layer"]
        MCP["MCP Server (stdio / json-rpc)"]
        CLIEngine["CLI Command Engine"]
    end

    subgraph Core["Infimium Core Engine"]
        ContextWriter["Context Layer (layer.md)"]
        MemoryEngine["3-Tier Memory Store"]
        GraphEngine["AST & Dependency Graph"]
        UpdateWorker["Auto-Update Watcher"]
    end

    subgraph LocalStorage["100% Local Storage (~/.infimium)"]
        SQLite[("Embedded SQLite (WAL Mode)")]
        Ollama["Local Ollama (nomic-embed-text)"]
        TreeSitter["Tree-sitter WASM Grammars"]
    end

    Cursor --> MCP
    Windsurf --> MCP
    Claude --> MCP
    CLI --> CLIEngine

    MCP --> ContextWriter
    MCP --> MemoryEngine
    MCP --> GraphEngine

    CLIEngine --> MemoryEngine
    CLIEngine --> ContextWriter
    CLIEngine --> UpdateWorker

    UpdateWorker --> ContextWriter
    UpdateWorker --> MemoryEngine

    MemoryEngine --> SQLite
    GraphEngine --> TreeSitter
    GraphEngine --> SQLite
    ContextWriter --> SQLite
    Core -.-> Ollama

Quick Start (3 Minutes)

Prerequisites

  • Node.js: >= 22.5.0
  • Ollama (Optional, automatically configured): For local embeddings (nomic-embed-text).

1. Initialize in Your Repository

Run setup from the root directory of the project you want to index:

cd /path/to/your/project
npx infimium@latest setup

What setup does:

  • Creates global configuration at ~/.infimium/.env.
  • Checks/starts Ollama and pulls the fast nomic-embed-text embedding model.
  • Indexes your project’s code symbols, local docs, and dependencies.
  • Runs doctor verification checks and launches the local Playground UI.

[!NOTE] Run setup inside your project directory, not from your home directory (~). Infimium prevents broad home directory indexing automatically.

If you don't have Ollama installed yet, let Infimium install it:

npx infimium@latest setup --install-deps

Connect Your AI Agent

Add Infimium to your IDE or MCP client configuration:

Cursor, Windsurf, Claude Desktop, & Goose

Add to your mcpServers configuration (mcp_config.json or Claude Settings):

{
  "mcpServers": {
    "infimium": {
      "command": "npx",
      "args": ["-y", "infimium", "serve"]
    }
  }
}

Restart your client. Your agent can now invoke Infimium tools natively:

  • "Use Infimium get_context to understand this project before making changes."
  • "Use Infimium semantic_code_search to find authentication logic."
  • "Use Infimium dep_graph to inspect callers of processPayment."
  • "Use Infimium infimium_update to record progress."

Autonomous Memory & Real-Time Auto-Update

Infimium gives your agent continuous episodic memory that updates while you work.

Enable Background Auto-Updates

Run the watcher in your project terminal:

infimium update start --interval 300
  • Immediate Startup Check: Executes an immediate workspace evaluation right upon starting.
  • Understands Workspace Changes: Inspects git status and file modification times to generate structured change summaries:
    [17:05:12] Memory updated: Auto-detected changes in 3 file(s): M lib/auth.ts, A test/auth_test.ts
    [17:10:12] Workspace clean: No new changes detected.
    
  • Live Terminal Logging: Keeps you informed in real-time with timestamped updates.
  • Active Scratchpad Sync: Updates project_state.updated_at and records progress events automatically.

To stop background updates:

infimium update stop

Manual Memory Checkpoints

Force a memory checkpoint or record specific task notes:

# Record progress with a note and active task
infimium update refresh --task "Refactor auth" --note "Implemented JWT validation middleware"

# Attach specific files to the checkpoint
infimium update refresh --note "Updated router" --file src/router.ts --file src/auth.ts

# Inspect update configuration and status
infimium update status

3-Tier Project Memory Model

Infimium structures agent memory into three distinct tiers to avoid context blowup:

TierPurposeStorage & Lifetime
Active ScratchpadImmediate working memory, active task progress, and live file modifications.Active session; pruned upon session completion.
Episodic ArchiveCompact summaries of completed tasks, milestones, and blockers.Long-term SQLite archive.
Semantic LedgerDurable project rules, architecture decisions, and conventions across all agents.Permanent versioned key-value ledger.

Recording Decisions & Progress

# Add a progress note to the active session
infimium remember "Added rate-limit middleware" --type progress --task "Rate limiting"

# Record a durable architecture decision into the semantic ledger
infimium remember "Use Redis-backed counters in production" --type decision

# Check current active memory and recent events
infimium resume

Completing & Compacting a Session

When a task is finished, compact the session scratchpad into a permanent milestone:

infimium memory complete

(Uses local Ollama compaction if available, with deterministic fallback).


Token Economics: ~99.5% Initial Token Reduction

Infimium uses an AST-first retrieval strategy. Instead of feeding full function bodies into the agent context, semantic code search returns lightweight AST symbol signatures:

Full implementation payload:  ~1,460 tokens
AST signature skeleton:            ~8 tokens
Initial payload reduction:       ~99.5%

Agents browse compact signatures first and request full bodies on-demand via expand_symbol.

Explore token savings in your repository with the local UI:

infimium playground

Navigate to Token Economics to see actual token differentials calculated across your codebase.


CLI Command Reference

CommandUsageDescription
setupinfimium setup [--install-deps]Interactive setup (Ollama, models, SQLite, indexer).
doctorinfimium doctorRuns health checks on Ollama, models, parsers, and SQLite.
statusinfimium statusDisplays indexed files, symbol counts, and memory state.
indexinfimium index [--verbose]Scans and indexes the repository or multi-project workspace.
watchinfimium watchContinuous file indexer daemon.
updateinfimium update [refresh|start|stop|status]Records memory checkpoints or runs periodic auto-updates.
rememberinfimium remember "<note>" [--type <t>] [--task <t>]Adds a progress note, decision, or milestone to memory.
resumeinfimium resumeDisplays active task, last update time, and scratchpad events.
memoryinfimium memory [complete|search|ledger]Compacts sessions, searches ledger, or inspects durable rules.
get-contextinfimium get-context [--refresh]Outputs the complete tri-zonal context layer (layer.md).
code-searchinfimium code-search "<query>"Semantically searches code and returns symbol signatures.
expand-symbolinfimium expand-symbol "<symbol>"Retrieves the full implementation for an indexed symbol.
dep-graphinfimium dep-graph "<symbol>"Displays callers, callees, imports, and HTTP routes.
docs-searchinfimium docs-search "<query>"Semantically searches local documentation (md, txt, pdf, html).
planinfimium plan "<task>" [--dry-run]Generates an implementation plan grounded in repository context.
playgroundinfimium playgroundLaunches the local interactive web dashboard.
workspaceinfimium workspaceManages federated multi-project workspaces.
telemetryinfimium telemetry [on|off]Enables or disables anonymous privacy-safe lifecycle telemetry.

MCP Tools Reference

When Infimium runs as an MCP server (infimium serve), it provides these 12 tools to AI agents:

MCP ToolPrimary Use CaseKey Arguments
hello_infimiumConfirms MCP server connectivity and status.None
get_contextRetrieves repository context, active memory, and handoff graph.refresh (boolean), project_path (string)
infimium_updateRefreshes episodic memory, logs notes, or configures auto-updates.action (refresh|start|stop|status), note, task, handoff, files
semantic_code_searchFinds code symbols by natural language meaning.query (string), limit (number)
expand_symbolFetches full source implementation for a given symbol.symbol_name (string), file_path (string)
dep_graphInspects callers, callees, imports, and API routes.symbol_name (string)
query_local_docsSearches Markdown, text, HTML, and PDF documentation.query (string)
project_memoryManages active scratchpads, completes sessions, or queries ledger.action (resume|remember|complete|search|ledger), summary, task
planGenerates a verified implementation plan for a task.task (string), dry_run (boolean)
web_searchPerforms external web searches (optional, requires Tinyfish API key).query (string)
fetch_urlConverts web pages to clean Markdown context.url (string)
shellExecutes sandboxed, allowlisted terminal commands with timeouts.command (string), args (array)

Multi-Project Workspaces

If your repository contains multiple packages (e.g. monorepo with frontend, backend, and shared libraries):

infimium index

Infimium automatically discovers sub-projects by scanning for package.json, pubspec.yaml, Cargo.toml, and go.mod. It creates infimium.workspace.json and federates cross-project dependency graphs while isolating memory per project.

For non-interactive CI setup:

infimium index --yes --no-playground

Local Architecture & Supported Languages

  • Embedded SQLite: Fast local database running in WAL mode for vectors, graphs, checkpoints, and memory. Zero Docker or external database services required.
  • Tree-sitter AST Extraction: Native and WASM parsers extract symbols, signatures, docstrings, imports, and call sites.
  • Supported Languages:
    • Bundled: TypeScript, JavaScript, Python, Dart.
    • Dynamic WASM: Go, Rust, Java, Ruby, PHP, C#.
  • Boundary-Aware Chunking: Documentation indexing respects Markdown headings, code blocks, and paragraph boundaries.
  • Ignore Rules: Honors .gitignore, .infimiumignore, and built-in rules (excluding node_modules, build outputs, binaries, and caches).

Privacy Guarantee

Infimium is designed for maximum privacy:

  • 100% Local: Source code, documentation, embeddings, dependency graphs, memory notes, and queries never leave your local machine.
  • Optional Anonymous Telemetry: Anonymous lifecycle telemetry (setup_completed, doctor_run) helps improve installation reliability. It contains no code, no paths, no prompts, and no identifiers.

Disable anytime:

infimium telemetry off

or in your environment:

INFIMIUM_TELEMETRY=false

Troubleshooting

Database is locked (Failed to start Infimium: Database is locked)

Another Infimium process (e.g., infimium watch or infimium playground) is currently accessing the database. Stop the running process with Ctrl+C before running manual index migrations.

Health Check Diagnostic

If any tool or index behavior seems unexpected, run:

infimium doctor

Every failed check outputs an exact copy-paste command to fix the issue.


License & Contributing

Infimium is open source under the MIT License. Contributions, bug reports, and pull requests are warmly welcomed via GitHub.

Frequently asked questions

What is Infimium MCP Server?

Private AI context layer for semantic code search, dependency graphs, memory, and workspaces.

How do I install Infimium MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Infimium MCP Server runs locally from the npm package infimium with the command npx -y infimium@0.3.1.

Is Infimium MCP Server free and open source?

Yes. Infimium MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Infimium MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Infimium MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Infimium MCP Server provide?

Infimium MCP Server provides 10 tools, including dep_graph, expand_symbol, fetch_url, and get_context. See the full tool list for descriptions and parameters.

How is Infimium MCP Server's trust score calculated?

Infimium MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server