PremAgentic
What it does
On-premises knowledge retrieval, with the rules you set enforced before anything is retrieved.
- Connects パソコンで動く
- Account or key Needs PREM_API_URL, PREM_AGENT_TOKEN
- Category 検索・AIの記憶
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 2/2 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
PremAgentic に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "premagentic": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "PREM_API_URL", "-e", "PREM_AGENT_TOKEN", "-e", "SSL_CERT_FILE", "ghcr.io/premagentic/premagentic-mcp:0.1.0" ], "env": { "PREM_API_URL": "your-value", "PREM_AGENT_TOKEN": "your-value", "SSL_CERT_FILE": "your-value" } } } }キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Claude を終了してもう一度開く
試してみる
PremAgentic を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が PremAgentic を使っていると言うか、回答に PremAgentic のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ PremAgentic につなげません
PremAgentic はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · PremAgentic につなげるアプリを使う
- PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
- PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
- PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
B · 検索・AIの記憶 の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Context7✓ ChatGPT
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
PremAgentic に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add --scope user premagentic --env PREM_API_URL=your-value --env PREM_AGENT_TOKEN=your-value --env SSL_CERT_FILE=your-value -- docker run -i --rm -e PREM_API_URL -e PREM_AGENT_TOKEN -e SSL_CERT_FILE ghcr.io/premagentic/premagentic-mcp:0.1.0Enter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Claude Code で /mcp と入力
PremAgentic が一覧にあり、接続済みと表示されれば OK です
試してみる
PremAgentic を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が PremAgentic を使っていると言うか、回答に PremAgentic のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
PremAgentic に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーを入力
PremAgentic の設定で PREM_API_URL, PREM_AGENT_TOKEN, SSL_CERT_FILE が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Cursor の AI チャットを Agent モードで開く
試してみる
PremAgentic を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が PremAgentic を使っていると言うか、回答に PremAgentic のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
PremAgentic のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
PremAgentic に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーを入力
PremAgentic の設定で PREM_API_URL, PREM_AGENT_TOKEN, SSL_CERT_FILE が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
VS Code の AI チャットを Agent モードで開く
試してみる
PremAgentic を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が PremAgentic を使っていると言うか、回答に PremAgentic のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add --scope user premagentic --env PREM_API_URL=your-value --env PREM_AGENT_TOKEN=your-value --env SSL_CERT_FILE=your-value -- docker run -i --rm -e PREM_API_URL -e PREM_AGENT_TOKEN -e SSL_CERT_FILE ghcr.io/premagentic/premagentic-mcp:0.1.0Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"premagentic": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PREM_API_URL",
"-e",
"PREM_AGENT_TOKEN",
"-e",
"SSL_CERT_FILE",
"ghcr.io/premagentic/premagentic-mcp:0.1.0"
],
"env": {
"PREM_API_URL": "your-value",
"PREM_AGENT_TOKEN": "your-value",
"SSL_CERT_FILE": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"premagentic": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PREM_API_URL",
"-e",
"PREM_AGENT_TOKEN",
"-e",
"SSL_CERT_FILE",
"ghcr.io/premagentic/premagentic-mcp:0.1.0"
],
"env": {
"PREM_API_URL": "your-value",
"PREM_AGENT_TOKEN": "your-value",
"SSL_CERT_FILE": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"premagentic": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PREM_API_URL",
"-e",
"PREM_AGENT_TOKEN",
"-e",
"SSL_CERT_FILE",
"ghcr.io/premagentic/premagentic-mcp:0.1.0"
],
"env": {
"PREM_API_URL": "your-value",
"PREM_AGENT_TOKEN": "your-value",
"SSL_CERT_FILE": "your-value"
}
}
}
}自分で入力する値
PREM_API_URL必須 envThe PremAgentic API's address, such as https://prem.example.org:8443. Plain http:// only for localhost.PREM_AGENT_TOKEN秘密 必須 envThe token of a registered agent, issued with 'prem tokens issue '. It begins with prem_agt_.SSL_CERT_FILEenvOnly for an API whose certificate prem setup signed itself: that certificate's path inside the container, mounted read-only.
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
- 週あたりのダウンロードi
- npm/PyPIにない
- 接続方法
- パソコンで動く
- 最新バージョンi
- 0.1.0
- レジストリ公開日i
- 2026年10月2日
- コードの最終更新i
- 2026年11月10日
- 作者
- premagentic
- パッケージ
oci: ghcr.io/premagentic/premagentic-mcp:0.1.0- ウェブサイト
- premagentic.com
- レジストリでの状態
- 有効
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月12日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント premagentic で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:一昨日
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
検索・AIの記憶のほかのサーバーとの比較i
- このカテゴリのほかの5990件のうち76%よりスターが多い
- このカテゴリのほかの5990件のうち48%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5990件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
PremAgenticは安全ですか?
当てはまる基本チェック2項目のうち2項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
入力が必要なもの:PREM_API_URL, PREM_AGENT_TOKEN
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は一昨日、最新バージョン(0.1.0)がレジストリに届いたのは41 日前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。
代わりに使えるものは?
同じカテゴリには:Context7, Codebase Memory, Ruflo
同じカテゴリのほかの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
PremAgentic
On-premises, for agents: the name says what it is. Governed knowledge retrieval that runs entirely inside a customer's own network. Point it at a folder of Markdown, text, PDF, Word or Excel files (the last three through first-party extensions an administrator allows), write down who may read which folders, and its people and agents get cited answers out of them, with those rules enforced before anything is retrieved.
*PremAgentic decides what the model is allowed to know. Every answer is a cited passage, marked with its trust, authorship and freshness.*
the customer's folders of documents -> connector -> chunk -> embed (locally)
-> plain PostgreSQL -> access, lifecycle, trust and freshness gates -> lexical search in PostgreSQL + exact vector search in process, fused -> cited answers -> a golden set that proves it works on THIS corpus
At runtime, with the default local embedding provider, PremAgentic makes no outbound call, needs no third-party API key, and sends no document anywhere on its own. An assistant that runs on a hosted model does receive the passages each search returns: PremAgentic asks where each agent's model runs, writes the answer on every audit row, and can keep a folder from every agent registered as using one (see Connect an assistant). PremAgentic calls out to nothing else unless an administrator selects the optional openai embedding provider or installs and allows an extension that does; a reminder sink that sends mail is a sample, not a built-in. With an HTTPS certificate issued by a certificate authority, the runtime's TLS stack may also fetch the certificate's revocation status (OCSP) and missing intermediate certificates, more than once; the self-signed certificate setup makes by default names no such address.
How that claim is tested, and what installing needs from the internet once, is on What PremAgentic is.
What it reads
Markdown and plain text files are read by built-in readers. PDF, Word (.docx) and Excel (.xlsx and .xlsb) files are read by three first-party extensions in this repository, extensions/pdf-reader, extensions/docx-reader and extensions/xlsx-reader. They are built with the solution and, like any extension, load only once an administrator puts each one's build output in the extensions folder and allows it with prem extensions allow. All three read text and nothing else: no link, script, macro or embedded file in a document is followed or run, and a file that crosses a limit is reported with the limit it crossed, never read in part. A PDF passage is cited by its page, a Word passage by the document's own headings, and an Excel passage by its sheet. A file a reader recognizes and will not index is counted with its reason, such as .pdf (no text layer), .doc (legacy .doc) or .docm (macro-enabled), and a file no reader claims is counted by its extension, so a folder of them does not look like an empty run. Before any reader sees a file, the run reads no more than 256 MB of it, and one file the index cannot store never stops a run.
tests/Premagentic.Benchmark times the search path on a synthetic index, and anyone can rerun it on a throwaway database; every table it prints names the machine it ran on and which of its two modes it ran in (Measuring it yourself).
What it does not do
- It does not write to the source.
- It does not generate prose.
- It does not recognize text in pictures or scanned pages.
The first two are explained under What it does not do; what it reads is above. Sign-in through a company directory is next in PremAgentic for Teams.
Quick start
# 1. Local stock PostgreSQL 17, on 5434 to stay clear of any PostgreSQL already on 5432 or 5433
docker compose up -d
2. Use the local development database for this shell. PremAgentic connects to
nothing unless told where; this switch names the compose instance.
$env:PREM_DEV_DATABASE = "1" # Linux or macOS: export PREM_DEV_DATABASE=1
3. One time: fetch the local embedding model (all-MiniLM-L6-v2 ONNX, ~90 MB)
./scripts/download-model.ps1 # Windows; on Linux or macOS: ./scripts/download-model.sh
4. Create the two groups the sample corpus and golden set name
dotnet run --project src/Premagentic.Cli -- groups add hr dotnet run --project src/Premagentic.Cli -- groups add engineering
5. Ingest the sample corpus. Each folder gets its own rule, so the two go in
separately with different audiences.
dotnet run --project src/Premagentic.Cli -- ingest ./sample-docs/open --public --prefix open dotnet run --project src/Premagentic.Cli -- ingest ./sample-docs/hr --principals group:hr --prefix hr
6. Ask it something
dotnet run --project src/Premagentic.Cli -- search "how long do I have to file an expense claim" --as group:engineering
7. Prove the gate. HR reaches the salary bands; engineering does not.
dotnet run --project src/Premagentic.Cli -- search "band four compensation review" --as group:hr dotnet run --project src/Premagentic.Cli -- search "band four compensation review" --as group:engineering
8. Run the golden set, which asserts both of those outcomes. It is the starter
profile's own file, so the questions are the ones the profile applies.
dotnet run --project src/Premagentic.Cli -- eval samples/profiles/starter/golden-set.json eval/report.md
Tests (unit plus a Testcontainers end-to-end slice; Docker required)
dotnet test
The same setup is a profile. On a fresh database, prem profile apply ./samples/profiles/starter creates the two groups, registers the two sources with their rules and sets the golden set in one step; applying it again changes nothing and says so. See Profiles.
The command line explains itself, with no database configured:
prem --help every command, with every option explained
prem --help one command's part prem --version the version, with the commit it was built from prem reminders run [--plan] what each source owner is reminded of: stale documents and the review queue
The full list is on The prem command, which is generated from the program.
Connect an assistant
Agents connect over MCP at /mcp in the same process, with their token. They get two read-only tools, search_knowledge and get_document_section, and no tool that writes, stores or remembers anything. For an agent that only speaks stdio, Premagentic.McpServer is a bridge. How to connect one: Connect an assistant.
A person can connect their own assistant at /portal/connect: the agent it makes acts as that person and nothing more, its token is shown once beside the configuration for the assistant they use, and they can revoke it there. An administrator bounds how many each person may have with agents.self_service_max (0 turns it off) and can reword any configuration with connect.snippets. An administrator can give every assistant the deployment's own instructions with prem settings set mcp.instructions " ": a client that reads what a server sends at connect receives them, they are served as the resource premagentic://instructions, and the connect page shows them for pasting into AGENTS.md, CLAUDE.md or a client's own instructions.
See it
*Folder rules decide who may read what. The first entry that names the caller decides, and no match is a deny.*
*Ask why for any person and any document, and PremAgentic shows the rule and every gate. Here a contractor is held back from the greenhouse notes.*
*Every agent carries where its model runs. Move one to a hosted model and the folders kept from hosted-model agents close to it on its next call.*
*The audit shows who asked, under which policy, where the model ran and every passage served, filtered here to what went to hosted-model agents.*
Documentation
- Start: What PremAgentic is, Getting started, Connect an assistant
- How it decides: Access, Lifecycle, trust and freshness, Administration
- Operate: Installing, Running it, Upgrading and removing, Configuration, Storage, The fully local stack
- Extend: Sources, readers and chunkers, Extensions, Writing an extension, Connectors, Profiles, Tuning and the golden set
- Reference: Surfaces, The prem command, Known state, Roadmap
The index of all of them, with what each covers, is docs/README.md.
Get involved
To contribute see CONTRIBUTING.md; your first pull request asks you to sign the contributor license agreement, once. Questions and ideas go to the repository's Discussions, a first change starts with an issue labeled good first issue, and what comes next is on Roadmap.
Support
Support comes with PremAgentic for Teams, from Agave Information Solutions, LLC: help installing and upgrading, sizing the hardware, mapping an organization's directory and permissions into PremAgentic, and answers from the maintainers. Write to premagentic@agaveis.com.
Questions go to the repository's Discussions and bugs to its issues, where the maintainers read and triage them. Security reports are always answered; see SECURITY.md.
License
PremAgentic is free software under the GNU Affero General Public License, version 3 only (AGPL-3.0-only). See LICENSE and NOTICE. Dependency and model licenses are listed in THIRD-PARTY-NOTICES.md.
Agave Information Solutions, LLC also offers PremAgentic under a commercial license, for building it into a closed product, or running a changed copy for its users without offering them its source. Write to premagentic@agaveis.com.
PremAgentic for Teams is what an organization adds to run PremAgentic for many people. It carries directory group mapping, and audit retention and export. Next in it: sign-in through Microsoft, Google or another OIDC provider, with group sync; connectors that read a source's own permissions, for SharePoint, OneDrive and Windows file shares; the administration API; and a signed installer. Support comes with it.
The add-on installs as one extension on the same extension host, allowed by hash like any other, and it is free for a deployment of up to 10 users. Customers can read the add-on's source.
The