prism-coder MCP工具 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
prism-coder MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
prism-coder MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/dcostenco/prism-coder
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"prism-coder-mcp--": {
"command": "npx",
"args": ["-y", "prism-coder"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 prism-coder MCP工具 执行以下任务... Claude: [自动调用 prism-coder MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"prism-coder_mcp__": {
"command": "npx",
"args": ["-y", "prism-coder"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Give your AI agent memory that lasts. Persistent sessions, knowledge graphs, and offline tool-routing — fully local and free.
<p align="center"> <img src="docs/v11_hivemind_multi_agent_dashboard.jpg" alt="Prism Coder — Mind Palace Dashboard with Knowledge Graph and Multi-Agent Hivemind" width="700" /> </p>
Prism Coder is an MCP server that gives Claude, Cursor, and other AI tools long-term memory that survives across sessions. It ships with the open-weight prism-coder model fleet (2B–27B) for fast, offline tool-routing — no cloud required.
No account needed. No API keys. Runs on your machine. A paid subscription adds cloud sync, higher model tiers, and team features through the Synalux portal.
---
<p align="center"> <img src="docs/scm_scan_cli.jpg" alt="prism scan — security scan finding secrets and container issues" width="400" /> </p>
---
bash synalux-private/scripts/install-git-hooks.sh
cp hooks/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit cp hooks/pre-push .git/hooks/pre-push && chmod +x .git/hooks/pre-push ```
| Hook | What it checks | Mode |
|---|---|---|
pre-commit | Dead code, orphan services, scaffold code, missing auth | PRECOMMIT_MODE=advisory\|block\|off |
pre-push | 19-rule security audit (SSRF, SQL injection, secrets, IDOR, etc.) | PREPUSH_MODE=advisory\|block\|off |
Default mode is advisory (warn but allow). Set *_MODE=block for hard enforcement. Hooks look for full audit scripts in the repo first (hooks/lib/), then ~/.claude/hooks/ fallback, then minimal inline checks.
---
The free tier needs no account, no API key, and no cloud. Add the server to your MCP client:
{
"mcpServers": {
"prism": {
"command": "npx",
"args": ["-y", "prism-mcp-server"]
}
}
}
Open Claude Desktop or Cursor and your agent now has memory backed by a local SQLite database (~/.prism-mcp/data.db).
Optional — local model fleet for offline tool-routing. Pull whichever fits your hardware:
ollama pull dcostenco/prism-coder:2b # 2.3 GB · mobile / lightweight (99.1% routing accuracy)
ollama pull dcostenco/prism-coder:4b # 3.4 GB · verifier (100% accuracy)
ollama pull dcostenco/prism-coder:9b # 5.8 GB · default router (100% accuracy, Qwen3.5)
ollama pull dcostenco/prism-coder:27b # 16 GB · complex tasks (100% accuracy)
Prism detects both the namespaced (dcostenco/prism-coder:9b) and bare (prism-coder:9b) Ollama tags automatically.
---
Call inference_metrics anytime mid-session to see how many prism_infer calls ran locally vs cloud, with actual token counts:
📊 Inference Metrics — local-model delegation (this session):
Total calls: 5 — Local: 5 (100%) | Cloud: 0 (0%)
Tokens: 1,240 in + 380 out = 1,620 total
Avg latency: 420ms
By model:
prism-coder:27b: 3 calls, 1,100 tokens, avg 520ms
prism-coder:9b: 2 calls, 520 tokens, avg 270ms
The same block also appears automatically in session_save_ledger and session_save_handoff responses at session end.
Note: This tracks prism_infer delegation only — not your host model's (Claude's) own token spend. For that, use Claude Code's /cost command.
prism config set delegation_enabled true ```
When enabled, the agent's task router may delegate qualifying work — bulk classification, field extraction, mechanical formatting — to prism_infer instead of using cloud tokens. The agent always verifies the result and redoes it itself if quality is degraded.
Guardrails: - Off by default — enforced in code, not just convention - Never delegates: code/text that ships to the user, security/safety logic, planning/reasoning, anything where a silent quality drop isn't obvious - Always verifies: checks quality_gate_failed and used_cloud before trusting local output
<details> <summary>How Prism survives context compaction</summary>
The LLM context window is treated as ephemeral scratch space; durable state lives in the persistent store (SQLite locally, the portal in the cloud). Every session begins with a mandatory session_load_context call, so the agent is oriented before it writes a response. When a project exceeds a threshold (default 50 entries), session_compact_ledger summarizes old entries into a rollup, soft-archives the originals, and links them in the graph. See docs/COMPACTION.md </details>
---
| Variable | Purpose | Default |
|---|---|---|
PRISM_STORAGE | local / synalux / supabase / auto | auto |
PRISM_SYNALUX_API_KEY | Paid-tier portal key (synalux_sk_...) | -- (local if unset) |
LOCAL_LLM_URL | Ollama endpoint | http://localhost:11434 |
PRISM_FORCE_LOCAL | Force local SQLite regardless of credentials | false |
TELEMETRY_WRITE_TOKEN | Portal analytics token (optional — metrics display works without it) | -- |
With no variables set, Prism runs fully local. Set PRISM_SYNALUX_API_KEY (and leave PRISM_STORAGE=auto) to use the cloud backend.
---
Three progressively harder Python tasks run through prism_infer(mode:"code", think:true) on the local 27B and compared with Claude Opus. Both produce correct, production-quality code. The 27B is slightly more verbose (docstrings, examples); Opus is slightly tighter (__slots__, early-exit DFS). On routine coding the 27B at $0 replaces cloud calls entirely.
| Task | Local 27B | Claude Opus | Verdict |
|---|---|---|---|
| Fibonacci with memoization | @lru_cache, ValueError on negative, docstring | Nested _fib to keep cache private | Both correct, equivalent |
| LRU Cache (OrderedDict, O(1)) | Any keys, isinstance capacity check, __repr__ | Hashable key type (more precise), same ops | Both correct, Opus marginally tighter |
| Trie with autocomplete | .lower() normalization, collect+sort+slice | __slots__ on TrieNode, early-exit DFS at limit | Both correct, Opus slightly more optimized |
<details> <summary>Local 27B output — Trie with autocomplete (hardest task)</summary>
class TrieNode:
def __init__(self):
self.children: dict[str, 'TrieNode'] = {}
self.is_end_of_word: bool = False
class Trie:
def __init__(self):
self.root: TrieNode = TrieNode()
def insert(self, word: str) -> None:
node = self.root
for char in word.lower():
if char not in node.children:
node.children[char] = TrieNode()
node = node.children[char]
node.is_end_of_word = True
def search(self, word: str) -> bool:
node = self._get_node(word.lower())
return node is not None and node.is_end_of_word
def starts_with(self, prefix: str) -> bool:
return self._get_node(prefix.lower()) is not None
def autocomplete(self, prefix: str, limit: int = 5) -> list[str]:
node = self._get_node(prefix.lower())
if node is None:
return []
results: list[str] = []
self._collect_words(node, prefix.lower(), results)
results.sort()
return results[:limit]
def _get_node(self, key: str) -> 'TrieNode | None':
node = self.root
for char in key:
if char not in node.children:
return None
node = node.children[char]
return node
def _collect_words(self, node: TrieNode, prefix: str, results: list[str]) -> None:
if node.is_end_of_word:
results.append(prefix)
for char, child in sorted(node.children.items()):
self._collect_words(child, prefix + char, results)
</details>
| Metric | Local 27B | Cloud (Opus) |
|---|---|---|
| Latency (Trie task) | ~30s | ~8s |
| Cost | $0 | ~$0.05 |
| Think mode | Enabled (stripped before serving) | N/A |
| Quality gate | Passed (no escalation needed) | N/A |
These tables are the maintainer's assessment as of June 2026. Verify claims that matter to you — products change fast.
| Feature | Prism Coder | GitHub Copilot | Cursor | Windsurf | Amazon Q | Devin |
|---|---|---|---|---|---|---|
| Local inference (open-weight) | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Works fully offline | ✅ (free tier) | ❌ | ❌ | ❌ | ❌ | ❌ |
| Persistent cross-session memory | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Session drift detection | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| L3 grounding verifier | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Behavioral verification (pre-edit) | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| MCP server (tools + memory) | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Web IDE | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ |
| VS Code extension | ✅ | ✅ | — | — | ✅ | ❌ |
| Flat-rate team pricing | ✅ | ❌ (per-seat) | ❌ (per-seat) | ❌ | ❌ | ❌ |
| HIPAA BAA available | ✅ (Enterprise) | ❌ | ❌ | ❌ | ❌ | ❌ |
| Feature | Prism Coder | Ollama | LM Studio | Mem0 | Zep |
|---|---|---|---|---|---|
| Local inference cascade | ✅ | ✅ | ✅ | ❌ | ❌ |
| Cloud fallback | ✅ | ❌ | ❌ | ❌ | ❌ |
| Persistent cross-session memory | ✅ | ❌ | ❌ | ✅ | ✅ |
| Knowledge ingestion (MCP + webhook) | ✅ | ❌ | ❌ | ❌ | ❌ |
| Cognitive routing (3-store) | ✅ | ❌ | ❌ | ❌ | ❌ |
| Session drift detection | ✅ | ❌ | ❌ | ❌ | ❌ |
| Native MCP server | ✅ | ❌ | ❌ | ❌ | ❌ |
| Web IDE + VS Code extension | ✅ | ❌ | ❌ | ❌ | ❌ |
Memory-augmented AI inside VS Code with clinical practice management features. Install from the marketplace:
code --install-extension synalux-ai.synalux
AI chat, voice input, SOAP note generator, team collaboration, and video calls — all inside VS Code. Routes through local Ollama by default; cloud on paid tiers.
<details> <summary>Feature details</summary>
- AI: Chat participant (@synalux), multi-agent pipeline, voice input, model switching, 10 tones - Clinical: SOAP note generator, role-based access, document signing, patient board - Collaboration: Team chat, DMs, video calls, customer board, visual builder, DevContainers - Privacy: Local Ollama by default. preferLocal=true tries local first. Enterprise BAA available. </details>
创新的AI智能体记忆系统,融合认知科学理论与隐私保护。架构设计前沿,代码维护活跃,135星体现社区认可度,值得关注前沿AI开发者。
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
经综合评估,prism-coder MCP工具 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | prism-coder |
| 原始描述 | 开源MCP工具:The Mind Palace for AI Agents - HIPAA-hardened Cognitive Architecture with on-de。⭐135 · TypeScript |
| Topics | 智能体记忆认知架构HIPAA合规反盲从机制Hebbian学习 |
| GitHub | https://github.com/dcostenco/prism-coder |
| License | AGPL-3.0 |
| 语言 | TypeScript |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端