Semantic vector DB as an MCP server for Claude Code
Project description
arcana-mcp
Semantic vector DB as an MCP server for Claude Code — SQLite + FTS5 + local ONNX embeddings.
Gives Claude persistent, searchable project knowledge across conversations. Index files, store findings, search semantically — all through MCP tools.
Install
Claude Code Plugin (recommended)
claude plugin marketplace add samelie/arcana-mcp
claude plugin install arcana-mcp
This installs the MCP server, skills (/arcana:context, /arcana:absorb), and orientation protocol automatically.
Manual
pip install arcana-mcp
Add to your .mcp.json:
{
"mcpServers": {
"arcana": {
"command": "uvx",
"args": ["arcana-mcp", "serve"]
}
}
}
Tools
| Tool | Description |
|---|---|
arcana_add_resource |
Index a file or directory into the DB |
arcana_add_memory |
Store a memory entry with embedding |
arcana_search |
Hybrid semantic + FTS5 search (best default) |
arcana_find |
Pure semantic (cosine similarity) search |
arcana_grep |
Keyword/regex search via FTS5 |
arcana_read |
Read full content of a resource |
arcana_ls |
List direct children at a URI |
arcana_tree |
Show recursive tree at a URI |
arcana_stat |
Get metadata + chunk count for a resource |
arcana_rm |
Remove a resource (with optional recursive) |
arcana_mkdir |
Create a directory at a URI |
arcana_mv |
Move/rename a resource |
Skills
/arcana:absorb <path>
Generates knowledge files optimized for Claude retrieval. Surveys a directory, synthesizes structured knowledge, and indexes it into Arcana. Re-runnable — updates stale files, removes orphans.
/arcana:context
Quick access to search, store, and browse project knowledge. Use arcana_search for hybrid search, arcana_add_memory for quick findings, arcana_add_resource for indexing files.
Configuration
| Environment Variable | Default | Description |
|---|---|---|
ARCANA_DB_PATH |
~/.arcana/context.db |
SQLite database path |
ARCANA_MODEL_CACHE |
~/.arcana/models |
ONNX model cache directory |
Architecture
- SQLite + FTS5: Full-text search with trigram tokenization
- fastembed: Local ONNX embeddings (
BAAI/bge-small-en-v1.5, 384 dimensions) - Hybrid search: 0.7 × semantic + 0.3 × FTS5 for best-of-both ranking
- Markdown chunking: Splits on
#headings into ~2000 char segments - MCP transport: stdio via FastMCP
Releasing
From the monorepo root, commit and push your changes, then run:
# Release the current version in pyproject.toml
./packages/arcana-mcp/scripts/release.sh
# Or bump + release in one step
./packages/arcana-mcp/scripts/release.sh 0.2.0
The script will:
- Validate you're on
mainwith a clean tree - Optionally bump
pyproject.tomland commit - Wait for the monorepo sync workflow to push to
samelie/arcana-mcp - Verify the remote version matches
- Create a GitHub release (
v0.x.x) which triggers the PyPI publish workflow
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arcana_mcp-0.1.2.tar.gz.
File metadata
- Download URL: arcana_mcp-0.1.2.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
804abee2ce93536cc4985a4844fd838379a17fa5d0f734ea7bd465e6ee6b2dd2
|
|
| MD5 |
37030c1b05a9fb80a7ef7f23bb7386c7
|
|
| BLAKE2b-256 |
06713ff40ad19e5b68939b3431ceafdd79f2e3092b8b7b7bd4b376a4d8b02cc3
|
Provenance
The following attestation bundles were made for arcana_mcp-0.1.2.tar.gz:
Publisher:
publish.yml on samelie/arcana-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arcana_mcp-0.1.2.tar.gz -
Subject digest:
804abee2ce93536cc4985a4844fd838379a17fa5d0f734ea7bd465e6ee6b2dd2 - Sigstore transparency entry: 1117278732
- Sigstore integration time:
-
Permalink:
samelie/arcana-mcp@08c1fc04b0d96c6ee11f83bcfcd36c66ea5d41cf -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/samelie
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08c1fc04b0d96c6ee11f83bcfcd36c66ea5d41cf -
Trigger Event:
release
-
Statement type:
File details
Details for the file arcana_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: arcana_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d070ef057f0c5e278f37f9d5f3a53c12f1f77bdeb3bc43a6e457d6b049fe546
|
|
| MD5 |
8e1c2d2d0f1f72d775940d4123659360
|
|
| BLAKE2b-256 |
e3b76809cda6585939eb192d616d1045e7ca0ea936f3d3ff322566b73aa0bd03
|
Provenance
The following attestation bundles were made for arcana_mcp-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on samelie/arcana-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arcana_mcp-0.1.2-py3-none-any.whl -
Subject digest:
1d070ef057f0c5e278f37f9d5f3a53c12f1f77bdeb3bc43a6e457d6b049fe546 - Sigstore transparency entry: 1117278817
- Sigstore integration time:
-
Permalink:
samelie/arcana-mcp@08c1fc04b0d96c6ee11f83bcfcd36c66ea5d41cf -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/samelie
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08c1fc04b0d96c6ee11f83bcfcd36c66ea5d41cf -
Trigger Event:
release
-
Statement type: