@hebbianvault/mcp
v0.2.1
Published
Customer-installable MCP server for the Hebbian tenant brain. One package, scope-by-token (Employee or Company). Install in Claude Code, Claude Desktop, Cursor, Cowork, or any MCP-compatible agent.
Maintainers
Readme
@hebbianvault/mcp
Connect Claude Code, Claude Desktop, Cursor, and any MCP-compatible agent to your Hebbian workspace.
One package, configured with a single token. Install in your MCP host, paste a token issued from your Hebbian integrations page (AI Tools tab), and your agent can read from and write to your workspace. This package is a thin client — all the intelligence and access control lives in the Hebbian service.
Quick start
# Install globally, or use npx — no install needed
npm install -g @hebbianvault/mcpGenerate a token from your Hebbian integrations page (AI Tools tab → Generate token).
Configuration
Claude Code (recommended)
claude mcp add hebbian \
-e HEBBIAN_API_TOKEN=your_token_here \
-- npx -y @hebbianvault/mcpClaude 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"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"hebbian": {
"command": "npx",
"args": ["-y", "@hebbianvault/mcp"],
"env": {
"HEBBIAN_API_TOKEN": "your_token_here"
}
}
}
}Config file (alternative to env var)
Write ~/.config/hebbian/mcp-tenant.json:
{
"token": "your_token_here"
}| 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. |
Token scope
Your token decides 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. The adapter just carries your token.
Tools
| Tool | What it does |
|---|---|
| hebbian_read_node | Read a single node by UUID (content, metadata, connected edges) |
| hebbian_search | Find nodes in your workspace matching a query |
| 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 a note 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 |
Results only ever include what your token is allowed to see.
Onboard an agent you already use
Every agent you already run carries its own context: a Claude Code memory directory, CLAUDE.md files, a folder of markdown notes. The absorb command brings that accumulated context into Hebbian, so an agent you have used for months arrives with what it already knows instead of a blank slate.
Absorbed files land as seeds in your review lane (they do not write straight into the workspace), attributed to the agent principal you name. You review and promote them like any other proposed knowledge.
First, register the agent and issue it a token from your Hebbian integrations page (AI Tools tab), and note its agent id. Then point absorb at the store:
# A Claude Code memory directory (MEMORY.md index + CLAUDE.md files + notes)
HEBBIAN_API_TOKEN=your_agent_token \
npx -y @hebbianvault/mcp absorb claude-code ~/.claude/projects/my-project --agent <agent_id>
# Any directory of markdown files
HEBBIAN_API_TOKEN=your_agent_token \
npx -y @hebbianvault/mcp absorb markdown ./docs --agent <agent_id>
# Walk and report what would be uploaded, without uploading
npx -y @hebbianvault/mcp absorb claude-code ~/.claude/projects/my-project --dry-runEach *.md file becomes one seed. The title is the file's first heading (or its name), and the source identifier is its path relative to the directory you pointed at. Re-running absorb on the same directory is safe: a file already absorbed for that agent is reported as a duplicate, not uploaded twice.
What never leaves your machine
absorb excludes secrets before anything is sent:
- Files whose names look like credentials are skipped entirely:
.env*, anything withcredentials,secret, ortokenin the name, plus.pem,.key, and SSH key files. - Token-shaped strings inside the files it does read are redacted before upload:
sk-...,ghp_...,hbn_..., Slack and AWS keys, JWTs, long hex and base64 blobs, and Bearer header values.
Every run prints a summary of how many files were skipped and how many strings were redacted, so you can see exactly what was filtered.
Security
- Tokens are bearer credentials — treat like passwords.
- Never commit tokens to git. Use env vars or a config file outside your repo.
- A
401error means your token is expired or revoked — generate a new one from the AI Tools tab. - HTTPS-only transport.
Python
A Python sibling package is available as hebbianvault-mcp on PyPI. Same 9 tools, same configuration.
Development
npm install
npm run build
npm testLicense
Apache-2.0. See the root LICENSE file.
