ideahub_mcp
An agent-first MCP server for capturing and recalling ideas — the agent's and their human's.
The primary user is a model. Tools are short, imperative, example-laden; errors carry a repair path; scope and actor resolve from context so the agent doesn't have to ask.
Tools
| Tool | Purpose |
|---|---|
capture |
Durable idea. Use when work produces something worth preserving beyond the task. |
checkpoint |
Lightweight working-memory trace. Use mid-task for observations, decisions, next steps. |
promote |
Promote a checkpoint to a durable idea, preserving its id, links, and provenance. |
dump |
Text-blob summary of the scoped corpus under a token budget. |
search |
FTS5 + bm25 ranked search with snippets. Auto-tokenizes by default. |
list |
Filter ideas by scope, actor, tags, date range. |
get |
Full detail for one idea, with notes and outbound links. |
related |
Nearest neighbors by tag overlap → shared originator → recency. |
annotate |
Append a free-text note to an idea without mutating it. |
archive |
Hide an idea; write a typed archive note with reason. |
link |
Connect two ideas (related, supersedes, evolved_from, duplicate, part_of, answers). part_of goes from the part to the whole; answers from the answer to the question. |
recognize |
Inspect the actor table. |
register |
Add an actor (e.g. human:you) so it can be an originator. Idempotent. |
ping |
Cheap no-side-effect health probe for connection/debugging. |
Writeback Loop
ideahub_mcp is designed to behave like working memory for an agent, not just searchable storage. Two write verbs close that loop:
capturewrites a durable idea that should survive the task.checkpointwrites a lightweight in-flight trace — observations, decisions, assumptions, open questions — without the semantic weight of a full idea.
When a checkpoint hardens into something load-bearing, promote flips its kind to idea while preserving the id, so existing links, annotations, and task_ref groupings carry forward unchanged. Promotion is one-way; an idea cannot be demoted.
All write-path verbs (capture, checkpoint, annotate, link) accept an optional task_ref — a free-form string that groups every write from the same task. It is normalized to lowercase kebab-case at the boundary, so "Writeback Phase 1", "writeback_phase_1", and "writeback-phase-1" collapse onto the same key.
capture and checkpoint return scored annotate_candidates and related_candidates in their response so the model sees where a fresh trace probably belongs (usually as an annotation on an existing idea) without having to search. The candidates parameter (default 5, max 10, 0 to skip) lets a caller cap or skip that envelope when fire-and-forget is the right move.
Checkpoints are default-excluded from search, list, and dump so cheap traces do not bleed into orientation surfaces — opt in with include_checkpoints=True.
Deduplication
capture runs two dedup paths before inserting:
- Fast path — same actor, same content, same scope, within 5 seconds: silently returns the existing id. This catches accidental double-fires.
- Content-hash path — same scope, same SHA-256 over normalized content (whitespace-collapsed, lowercased), any actor, any time, against live (non-archived)
kind='idea'rows: returns the existing id, merges incoming tags into the row, and appends akind='dup_attempt'note recording the second actor and tag delta.
Hash dedup makes re-derivation of the same idea observable in the row's note stream rather than silently creating duplicates.
Search
search defaults to query_mode='auto', which tokenizes the query and quotes each token so FTS5 operators (-, :, *, etc.) are treated as content. This is the right mode for searching kebab-case identifiers — task_refs, branch names, ULIDs.
For phrase queries, NEAR, or column-qualified syntax, pass query_mode='raw'. Raw mode validates the query and raises a loud error on syntax failure rather than the silent empty-result FTS5 returns by default.
Discovery And Health
ideahub_mcp is intentionally tool-first, not resource-first. A client may show a healthy connection even when list_resources() is sparse or empty.
To make discovery cheap and host-agnostic, the server exposes:
ping: a no-side-effect tool for "is the server connected and responsive?"ideahub://status: a status resource that reports package version, storage paths, and the current tool surface.
That design supports hosts that favor different MCP surfaces. Some clients reason primarily over tools. Others probe resources first. A healthy server should be easy to verify in either style.
For the full compatibility rubric, see docs/mcp-health.md.
Direction
- Direction: IdeaHub as the foundation for Grok Native: one shared source of truth that many agents read and one writer appends to.
- Sidecars: the transcript ingester, health check, and activity-log pipeline that run next to this package, outside it.
Install
uvx ideahub_mcp # try it
uv tool install ideahub_mcp # keep it around
Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"ideahub": {
"command": "uvx",
"args": ["ideahub_mcp"],
"env": {
"IDEAHUB_MCP_HOME": "/Users/you/.ideahub_mcp",
"IDEAHUB_ACTOR": "human:you"
}
}
}
}
Configuration
| Var | Default | Purpose |
|---|---|---|
IDEAHUB_MCP_HOME |
~/.ideahub_mcp/ |
Data directory (SQLite store, logs, backups). |
IDEAHUB_ACTOR |
— | Default actor id (human:you or agent:name). |
IDEAHUB_SCOPE |
— | Fallback scope when cwd isn't a git repo. |
Actor resolution: explicit arg → IDEAHUB_ACTOR → MCP clientInfo.name → error.
The actor name is a label set by the caller (the actor argument, IDEAHUB_ACTOR, or the client's name). It is not a login check or authentication.
Scope resolution: explicit arg → IDEAHUB_SCOPE → repo:<git-toplevel> → global.
Storage
One SQLite file with WAL, FTS5, and hand-rolled migrations. No ORM. Daily snapshots to $IDEAHUB_MCP_HOME/backups/ with 14-day retention.
Develop
uv sync --dev
uv run pytest
uv run ruff check .
uv run pyright
License
MIT.
Metadata
Release files for ideahub-mcp 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ideahub_mcp-0.5.0.tar.gz | 127.8 kB | With provenance | Details for ideahub_mcp-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ideahub_mcp-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for ideahub_mcp-0.5.0-py3-none-any.whl |
Total release size: 170.7 kB
Release files / ideahub_mcp-0.5.0.tar.gz
| Download URL | ideahub_mcp-0.5.0.tar.gz |
|---|---|
| Size | 127.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
557360b0e3a52a3265187070c8560bd0b2b34a45826f00f1ac1c375f61b5103b
|
|
BLAKE2b-256 checksum How to use checksums |
3bf38b29b2235bde51e16966094814c3c65fa3aa7439b8fa5d4fcf3195c7f9f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logRelease files / ideahub_mcp-0.5.0-py3-none-any.whl
| Download URL | ideahub_mcp-0.5.0-py3-none-any.whl |
|---|---|
| Size | 42.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
427970395258b2faf8fa83d1dca8588f1325bc0da0951b9829ef52b5da3cfbbd
|
|
BLAKE2b-256 checksum How to use checksums |
3cffc793818ce40ae090e9b267013e5ff47b95b42c36304c207720df62867459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logSecurity for ideahub-mcp 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ideahub_mcp-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.