Skip to main content

Customer-installable MCP server for the Hebbian tenant brain (Python). Same 8 tools as the Node.js sibling @hebbianvault/mcp.

Project description

hebbianvault-mcp (Python)

Python sibling of @hebbianvault/mcp. Connect a Python MCP host to your Hebbian workspace — same 8 tools, same configuration. A thin client; all intelligence and access control live in the Hebbian service.

Quick start

pip install hebbianvault-mcp
# or with uv (preferred)
uv add hebbianvault-mcp

Generate a token from your Hebbian integrations page (AI Tools tab → Generate token).

Configuration

Set HEBBIAN_API_TOKEN (or HEBBIAN_TOKEN) env var:

HEBBIAN_API_TOKEN=your_token_here hebbian-mcp

Or 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.

Generic agent config

import os
os.environ["HEBBIAN_API_TOKEN"] = "your_token_here"
from hebbianvault_mcp import create_server
server = create_server()
# server.run() to start serving over stdio

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.

Tools

Tool What it does
hebbian_read_node Read a single node by UUID
hebbian_search Find nodes in your workspace matching a query
hebbian_ask Ask a question and get an answer backed by source quotes
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.

Development

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

Node.js version

The canonical package is @hebbianvault/mcp on npm. This Python sibling has identical tools and configuration. Use whichever matches your MCP host environment.

License

Apache-2.0. See the root LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hebbianvault_mcp-0.2.0.tar.gz (55.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hebbianvault_mcp-0.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file hebbianvault_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: hebbianvault_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 55.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hebbianvault_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 50a2606c587a82982487fc0d68bb817130e55622633b20c2a48b7b2d49c796d3
MD5 8d32230bf1ce6c5cea0af63822935ff7
BLAKE2b-256 7aa8bbc8da385bef735562a2db800ae3afc63eb6d450be2b5e1c57a332f8c1fc

See more details on using hashes here.

File details

Details for the file hebbianvault_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hebbianvault_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hebbianvault_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a70ff0406bd3633886b21b6406711e42efa81f7cde14e897f253581390e5baf
MD5 150e63c67c0a31716bf2c32f0690b8c0
BLAKE2b-256 cf321bca8b59fa0545f88bc07b7cd3b92251561fec36b2dfc27c63b7df9082cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page