Silica Coreのロゴ

Silica Core

コミュニティ
kiycoh

Retrieval tools for coding agents, no model in the loop: SOTA-competitive files, search, read, code_pack and write_note over the folder your session is opened in, served over MCP.

公開者kiycoh
リポジトリsilica-core
言語Python
フォーク
8
スター
70
利用可能なツール
0
通信方式stdio
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Silica Coreは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには70件のスターと8件のフォークがあります。

Lightweight, local evidence retrieval tools for code and research

Silica locates the source, symbol, page, or passage you and your agents need. Maximum signal, minimum machinery.

Silica indexes the markdown, code, PDFs and office files under one root and serves them to Claude Code, Cursor, Hermes, Codex, OpenCode and every other popular harness, as MCP tools or as shell commands that print the same JSON. A hit is a path, a section, a line, a window of text and the numbers to judge it by. The harness owns the loop.

Three commands, then a question asked the way you would ask any other. The harness calls silica_search, and the answer carries the file, the page and the line it came from.

Install

In Claude Code, install the plugin instead: it brings its own server, dense leg included.

bash
uv tool install 'silica-core[mcp]'         # BM25 over documents and their sections (faster, lighter)
uv tool install 'silica-core[mcp,dense]'   # in addition the dense leg: numpy, a static model (still fast, more precise)

The second line adds the dense leg: numpy and a static model2vec model, no torch and no GPU. It stays inert until the model is named and the sections are embedded — the last stanza of the Quickstart. Take it when the questions are paraphrases that share no words with the text; an exact term or an identifier is answered by the lexical leg either way, and only that leg reports terms_absent.

pipx works the same. The package and the command are silica-core, the tools are silica_*.

Upgrading from 0.9 or older: the silica command is silica-core since 0.10.0 (silica belongs to silica-harness). A client registered by an older silica setup still launches silica mcp, which stops starting once uvx fetches 0.10.0. Run silica-core setup <client> once and it rewrites that entry.

Quickstart

In any folder of markdown, code, PDFs or office files:

bash
silica-core init                              # adopt the folder: ignore file, vault.yaml, first index; the MCP server serves adopted folders only
silica-core search "leveled compaction" -k 5  # the best located passages
silica-core setup claude                      # register the MCP server, write the guidance block into ~/.claude/CLAUDE.md

# optional, with the [dense] extra: the dense leg, a static model, nothing leaves the machine
export SILICA_EMBEDDING_MODEL=model2vec/minishlab/potion-retrieval-32M
silica-core index --embed

Nine arXiv papers, indexed in 2.1 s. The hit names the file, the page and the passage; the page beside it is the check.

Tools

ToolShellReturns
silica_filessilica-core filesthe inventory and what the index did with each file: indexed, changed, excluded, failed, unconverted
silica_searchsilica-core searchranked passages: path, section, line, BM25, matched terms, coverage, and the query terms absent from the corpus
silica_readsilica-core reada slice by lines or by heading (a page, in a PDF), the outline, and a version to carry forward
silica_code_packsilica-core code-packan AST context pack for one source file inside a character budget
silica_write_notesilica-core write-noteone atomic write, linted for structure and unresolved wikilinks

In a source tree every function, method, class and constant is its own unit: a hit's section is the symbol, span its lines, and silica_read(path, section=…) serves the body. For a symbol whose name is known, grep wins; for a question that names none, the search comes first: the tool description and the block silica-core setup claude writes say so. The contract, the reply shapes and the acceptance checks are in TOOLS.md. Nothing needs an API key or a network.

How search says no

A ranked list always has a top, even when the corpus does not answer. Three fields say how much the result is worth:

  • coverage: the share of the query's idf mass the hit's matched terms carry. Near 1, every rare term matched; near 0, only common words did.
  • terms_absent: query terms that occur nowhere in the corpus.
  • matched_terms: the words this hit actually contains.

raft consensus log replication over the same nine papers: raft and consensus occur in none of them, coverage falls to 0.19, and the top hit is about data replication. On 254 papers the top hit of an answered question carries 0.69 to 1.00; a question the corpus does not cover, 0.44. Silica exposes the signals; the harness decides whether to stop, read or rephrase.

Benchmarks

nDCG@10 on BEIR SciFact · NFCorpus, the same documents and queries for every arm. BEIR's published BM25 baselines are 0.665 · 0.325. Silica's lexical index needs no model; the others serve lexical search from an index that also holds embeddings.

ModeSilicazvec-grep 0.2.2ck 0.7.11
Lexical0.662 · 0.3110.649 · 0.2970.630 · 0.289
Hybrid, same potion-retrieval-32M embedder0.675 · 0.3280.672 · 0.330

Code, on the twenty SWE-QA questions zvec-grep publishes for its own benchmark, same embedder, k = 10, scored on the files and symbols the reference answer rests on.

Armfile hit@5 · @10file MRRsymbol hit@10symbol recallchars returned
Silica, hybrid0.85 · 0.900.680.750.248,266
Silica, vectors0.80 · 0.850.670.650.216,225
Silica, lexical0.65 · 0.750.470.450.148,194
zvec-grep 0.2.2, hybrid0.65 · 0.750.540.550.177,326
zvec-grep 0.2.2, vector0.60 · 0.800.610.550.186,821
zvec-grep 0.2.2, FTS0.45 · 0.600.360.450.116,690

On BEIR the two hybrids tie at the 95% interval: the same vectors rank the same, with no daemon and no vector store. On code, Silica's hybrid file MRR is +0.135 over zvec-grep's hybrid (95% interval +0.01 to +0.27), paired per question. The fusion also gains +0.21 MRR and +0.30 symbol hit over Silica's lexical arm; no reranker or graph expansion is involved.

On this measured scope, Silica is a compact, local, SOTA-competitive retriever: it matches zvec-grep on BEIR and leads the paired SWE-QA code-localization replay with the same embedder.

Retrieval matters only if the agent does less work without losing the answer. These are separate experiments and are not pooled:

Workload and armRunsQualitySearch usedTurnsTool callsSecondsWarm cost
Repository, search-first contract20Judge 59.717/204.7—24$0.197
Repository, same plugin without contract20Judge 50.60/206.5—28$0.180
Documents, resident Silica tools12 tasks12/12 correct12/123.92.9—$0.20
Documents, no plugin12 tasks12/12 correct—5.04.0—$0.22

The repository result is one repetition: turns improve by 1.75 (95% interval 0.55 to 3.05 fewer), while Judge and cost remain inconclusive. The document rows belong to a 144-run study over twelve questions and a 5.5M-token corpus. They establish less work on that workload, not a universal agent claim.

Corpora, intervals, per-task exceptions and reproduction commands are in benchmarks.

Harnesses

silica-core setup <client> writes the registration into the client's own config and backs up what was there; for claude it also puts a guidance block, when to search before grep, into ~/.claude/CLAUDE.md. silica-core setup --list names the clients: claude, codex, cursor, windsurf, zed, cline, roo, continue, goose, opencode, openhands, gemini, antigravity, dsh, hermes, openclaw, agent-zero, claude-desktop, lmstudio, anythingllm and librechat; shell, python and generic print recipes for anything else. The server serves the folder the client opens in; --vault DIR or SILICA_VAULT fixes the root.

Every written block, and the Claude Code plugin, run silica-core mcp --retrieval local-hybrid: potion-retrieval-32M in the server process, index and vectors built in the background at start, the search lexical and dense: warming until they land. Nothing leaves the machine; the one download is the model, once. npx skills add kiycoh/silica-core installs the skills (the one that tells an agent when to reach for the tools, and five that explain, summarize, compare, schematize and diagram from the indexed documents), and nothing else. Shell recipes, Docker and the REPL are in public/harnesses.md.

How the Claude Code plugin works

In Claude Code the plugin is all you need: it brings its own server and the skills. The Install section above and silica-core setup claude are for other clients; with both, two servers serve the same folder.

Install

It needs uv on PATH, which starts the server.

bash
claude plugin install silica-core --marketplace kiycoh/silica-core

That one step works on Claude Code 2.1.275 or later, and /plugin install silica-core --marketplace kiycoh/silica-core does the same inside a session. On an older client, add the marketplace first: claude plugin marketplace add kiycoh/silica-core, then claude plugin install silica-core@silica-core.

First run

  1. Start Claude Code in the folder you want to search.
  2. Wait for the first start. It is slower than the next ones: uv installs the packages and the server downloads its model, once.
  3. Press Index above the prompt, or type /silica-init. Nothing is indexed until you do.
  4. Ask a question about the folder. Claude searches it with silica_search. Until the vectors are built the search is lexical, and its replies say dense: warming.

Update

Refresh the marketplace, then the plugin. The new version loads in the next session.

bash
claude plugin marketplace update silica-core
claude plugin update silica-core@silica-core

What it runs, reads and downloads

The plugin is an MCP server plus a small mod in hooks/. Neither one sends your files, prompts or conversation anywhere.

  • The server starts with uv run --frozen --project <plugin folder>. The plugin folder is ~/.claude/plugins/cache/silica-core/silica-core/<version>, with the version claude plugin list shows. The first time, uv installs the packages pinned in uv.lock from PyPI (and a Python build if the machine has no Python 3.11 or newer), and the server downloads the potion-retrieval-32M model from Hugging Face. Nothing else is downloaded.
  • Indexing. In a folder that isn't indexed yet, the mod shows an Index button above the prompt; /silica-init does the same. Either one runs uv run --frozen --project <plugin folder> --extra mcp --extra dense silica-core init in that folder, which writes vault.yaml there (plus .silicaignore in a code repository) and builds the index under ~/.silica. Not here hides the button for that folder. Nothing is indexed until you ask.
  • Search hints. In an indexed folder, when you ask a question that names no file or symbol, the mod adds one line asking Claude to try silica_search before grep. It also adds the search guidance to the system prompt, unless your CLAUDE.md already has it. The mod reads three environment variables, CLAUDE_CONFIG_DIR, HOME and USERPROFILE, only to find that CLAUDE.md and to skip your home folder.
  • Docs upkeep. In an indexed folder with a docs/ folder, the mod helps Claude keep the docs in step with the code. It asks; Claude decides, and no write is ever refused.
    • After a write worth recording (a new file, a manifest, 30 changed lines in a turn, or a file an ADR lists), Claude gets one reminder: bring docs/ up to date, or say there is nothing to record.
    • When a turn that wrote under docs/ ends, the mod checks those files for links and code paths that lead nowhere, two ADRs with one number, and an accepted ADR whose Decision changed. Claude fixes what it agrees is a defect or says why it is not; the check asks at most twice a turn.
    • At the start of an interactive session it reads docs/adr/ and docs/specs/ and runs git, then shows above the prompt how many records name what is not there and how many have files that changed since. /silica-docs lists them.
    • A record whose frontmatter has implementation: (implemented, partial, pending, draft, dropped or n/a) is held to it: implemented and partial name a commit or a path in implemented_in, pending and draft name none, partial and dropped carry an implementation_note.

On an older Claude Code

The Index button, /silica-init, the search hints and the docs upkeep come from the mod, which needs Claude Code 2.1.293 or later. An older client still runs the server and the skills. Index a folder from a terminal opened in it instead:

bash
uv run --frozen --project <plugin folder> --extra mcp --extra dense silica-core init

When it does not work

  • The silica tools are missing, or Claude Code says it could not connect to plugin:silica-core:silica-core. The server did not start; /mcp shows its state. The usual causes are uv missing from PATH and a first install that failed. Start the server by hand in the folder to read the error:

    bash
    uv run --frozen --project <plugin folder> --extra mcp --extra dense silica-core mcp --retrieval local-hybrid

    When all is well it prints serving 5 tools on stdio, waiting for a client; Ctrl+C ends it.

  • No Index button. It never shows in your home folder or in /, which are too large to index whole. After Not here it stays hidden in that folder, and /silica-init still indexes it. On a client older than 2.1.293, see above.

  • What this machine can read. silica-core doctor checks the install and the folder:

    bash
    uv run --frozen --project <plugin folder> --extra mcp --extra dense silica-core doctor

Uninstall

bash
claude plugin uninstall silica-core@silica-core

The plugin leaves two things behind:

  • vault.yaml, and .silicaignore in a code repository, in each folder you indexed;
  • the indexes in ~/.silica/index/, one folder each.

Delete them by hand. An index deleted while the plugin is still installed is rebuilt the next time its folder is searched.

Notes

  • What it reads: markdown, .txt, .rst and PDFs with a text layer directly, one PDF page per section; DOCX, EPUB, FB2, RTF, XLS and ODF converted with no extra; scanned PDFs, images, PPTX and XLSX through silica-core import with MinerU; audio and video with ffmpeg plus SILICA_STT_BASE_URL; CSV readable by line, excluded from search. In a source tree the code lane adds source files and their json, yaml, toml, cfg and ini. silica-core doctor says which lanes this machine has.
  • The dense leg: section embeddings that catch a paraphrase sharing no rare word with the answer. uv tool install stays lexical until silica-core index --embed, with the [dense] extra's local model or any OpenAI-compatible /v1/embeddings endpoint. Text leaves the machine only for a remote endpoint, and only after silica-core index --embed --allow-remote grants that host once. Variables and reply states in TOOLS.md, the ollama recipe in public/harnesses.md.
  • More surfaces: silica-core mcp --extended adds the wikilink tools; silica-core connect (extra [connect]) hosts the bridge the Obsidian plugin dials into, so writes land through the vault API while the app is open; silica-core repl runs a small reference agent over the same tools, the one surface that needs a model (SILICA_MODEL).
  • Not in the core: no memory lane, prompt injection, summaries or undo journal. Undo is git.

License

MIT. See LICENSE.

Silica CoreのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Silica Coreに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Silica Coreをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Silica CoreのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "silica-core": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてSilica CoreのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Silica CoreのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Silica Coreを使ってこのタスクを手伝ってもらえますか?
Silica Core
はい、読みました。
Silica Coreで調べた結果をお伝えします。

よくある質問

Silica Core MCPサーバーは何に使いますか?

Silica Coreは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでSilica Core MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでSilica Coreを利用できます。

TypingMindでSilica Core MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Silica Coreを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Silica Core MCPをTypingMindに接続するにはどうすればよいですか?

Silica CoreはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでSilica Core MCPのどのようなツールを利用できますか?

Silica CoreはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Silica Core MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Silica Coreで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇