Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Hebbian

БесплатноНе проверен

Connects AI agents to Hebbian knowledge workspaces with 8 tools for semantic search, synthesis Q&A, graph traversal, and vault capture.

GitHubEmbed

Описание

Connects AI agents to Hebbian knowledge workspaces with 8 tools for semantic search, synthesis Q&A, graph traversal, and vault capture.

README

Hebbian

hebbian-mcp

npm PyPI License

Customer-installable adapter that connects Claude Code, Codex, Gemini CLI, Claude Desktop, Cowork, Cursor, and any MCP-compatible agent to your Hebbian workspace.

The adapter is a thin client. Your token goes in; the Hebbian service decides what you can read and write. This package contains no business logic — it is intentionally small and auditable before you paste a credential.

Install

Both packages are published and expose the same 13 tools and the same configuration. Use whichever matches your MCP host.

# Node.js (npm) — run directly, no global install needed
npx @hebbianvault/mcp

# Python (PyPI)
pip install hebbianvault-mcp   # or: uv pip install hebbianvault-mcp

See Quick start (TypeScript) and Quick start (Python) below for adding the server to your MCP host and generating a token.

Packages

Package Language Install
@hebbianvault/mcp TypeScript / Node.js npm install -g @hebbianvault/mcp
hebbianvault-mcp Python pip install hebbianvault-mcp

Both expose the same 13 tools and the same configuration. Use whichever matches your MCP host.

Quick start (TypeScript)

npm install -g @hebbianvault/mcp

Generate a token from your Hebbian integrations page (AI Tools tab → Generate token), then add the server to your MCP host.

Use the configuration for your host below. Replace your_token_here with the token you generated.

Claude Code

claude mcp add hebbian -e HEBBIAN_API_TOKEN=your_token_here -- npx -y @hebbianvault/mcp

Codex (CLI + Desktop app)

codex mcp add hebbian --env HEBBIAN_API_TOKEN=your_token_here -- npx -y @hebbianvault/mcp

For the Codex desktop app, add this to ~/.codex/config.toml, or use Settings → MCP servers:

[mcp_servers.hebbian]
command = "npx"
args = ["-y", "@hebbianvault/mcp"]
env = { HEBBIAN_API_TOKEN = "your_token_here" }

Gemini CLI

gemini mcp add hebbian -e HEBBIAN_API_TOKEN=your_token_here npx -y @hebbianvault/mcp

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "hebbian": {
      "command": "npx",
      "args": ["-y", "@hebbianvault/mcp"],
      "env": { "HEBBIAN_API_TOKEN": "your_token_here" }
    }
  }
}

Cowork

{
  "mcpServers": {
    "hebbian": {
      "command": "npx",
      "args": ["-y", "@hebbianvault/mcp"],
      "env": { "HEBBIAN_API_TOKEN": "your_token_here" }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "hebbian": {
      "command": "npx",
      "args": ["-y", "@hebbianvault/mcp"],
      "env": { "HEBBIAN_API_TOKEN": "your_token_here" }
    }
  }
}

Generic Agent

For an MCP-compatible agent that accepts a standard input/output command:

HEBBIAN_API_TOKEN=your_token_here npx -y @hebbianvault/mcp

Or use the Python package:

# pip install hebbianvault-mcp   (or: uv add hebbianvault-mcp)
HEBBIAN_API_TOKEN=your_token_here hebbian-mcp

Quick start (Python)

pip install hebbianvault-mcp
# or with uv (preferred)
uv add hebbianvault-mcp
HEBBIAN_API_TOKEN=your_token_here hebbian-mcp

Token scope

Your token determines what the adapter can see and do — a personal-workspace token gives access to your own knowledge; a company-workspace token gives access to the shared company workspace (where your role allows). Scope is decided by the Hebbian service, not by this package. Search uses server-side full-text retrieval for employee-scope tokens. Traverse and provenance route company-scoped tokens to the company graph and other tokens to the workspace graph; search retains that company-graph path until an org-wide search endpoint is available. If the advisory scope probe fails, the adapter caches the employee fallback for its process lifetime; restarting the MCP process clears that cached fallback.

Generate, name, and revoke tokens from the AI Tools tab of your Hebbian integrations page. Never commit tokens to git.

Tools

Tool What it does
hebbian_read_node Read a single node by UUID (content, metadata, connected edges)
hebbian_search Full-text search nodes by title, summary, and note body
hebbian_ask Ask a question and get an answer backed by source quotes
hebbian_context Describe a task and a token budget, get back a salience-ranked context pack that fits
hebbian_capture Write one note, or batch-capture up to 25 notes, into your workspace
hebbian_traverse Explore nodes connected to a starting node
hebbian_provenance See where a node's knowledge came from
hebbian_salience See a node's recent activity over time
hebbian_recent_activity Catch up on recent changes in your workspace
hebbian_whoami Show the tenant, role, scope, and principal for your token
hebbian_usage Show your usage and spend-meter summary; optionally view company usage
hebbian_gdpr_export Export tenant data for a GDPR access request (owner access required)
hebbian_audit_log Retrieve tenant audit-log items[] (empty if no data), with optional limit and offset

All access control is decided by the Hebbian service; results only ever include what your token is allowed to see.

Configuration

Variable Purpose
HEBBIAN_API_TOKEN Your token (required). HEBBIAN_TOKEN is also accepted.
HEBBIAN_API_URL Override the API base URL (Enterprise self-host). Defaults to the Hebbian SaaS API.
HEBBIAN_TENANT Optional workspace slug — only needed if your account belongs to more than one workspace.

Config file (alternative)

Write ~/.config/hebbian/mcp-tenant.json:

{
  "token": "your_token_here"
}

Enterprise self-host customers add "api_url": "https://api.your-hebbian-host.example" (or set HEBBIAN_API_URL) to point the adapter at their own deployment.

Tenant erasure (raw HTTP only)

Tenant erasure is irreversible and founder/owner only. It is deliberately not exposed as an MCP tool. After confirming the tenant and all legal and operational consequences, use the tenant-delete endpoint directly with the required confirmation phrase:

curl --request POST "${HEBBIAN_API_URL:-https://api.hebbianvault.com}/tenant/delete" \
  --header "Authorization: Bearer $HEBBIAN_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"confirm": "DELETE MY TENANT DATA"}'

The exact confirmation phrase is DELETE MY TENANT DATA; any other value returns 400. Do not run this command from an automated workflow.

Security

  • Tokens are bearer credentials — treat them like passwords.
  • Never commit tokens to git. Use env vars or a config file outside your repo.
  • A 401 response means your token is expired or revoked — generate a new one from the AI Tools tab.
  • HTTPS-only transport.
  • The adapter source is public so you can audit exactly what runs on your machine before pasting a credential. All access control is enforced by the Hebbian service.

Source layout

ts/    — TypeScript package (@hebbianvault/mcp, npm)
py/    — Python package (hebbianvault-mcp, PyPI)

Development

TypeScript

cd ts/
npm install
npm run build
npm test

Python

cd py/
uv venv && uv pip install -e ".[dev]"
pytest
ruff check src/ tests/

Contributing

See CONTRIBUTING.md.

License

Apache-2.0. See LICENSE.

The Hebbian service this adapter connects to is proprietary. This adapter is the open-source reference client.

from github.com/hebbianvault/hebbian-mcp

Установить Hebbian в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install hebbian

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add hebbian -- npx -y @hebbianvault/mcp

Пошаговые гайды: как установить Hebbian

FAQ

Hebbian MCP бесплатный?

Да, Hebbian MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Hebbian?

Нет, Hebbian работает без API-ключей и переменных окружения.

Hebbian — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Hebbian в Claude Desktop, Claude Code или Cursor?

Открой Hebbian на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Hebbian with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai