Skip to main content

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

License

MIT

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

arcana_mcp-0.1.1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

arcana_mcp-0.1.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file arcana_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: arcana_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for arcana_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5d77ce0752efc328e789b1fc3f53a0efd3d507cb89995de97c4bdef514e1455e
MD5 d13007d0bfa26522dd3d4c8cb6f94496
BLAKE2b-256 7ded0531c40a150f868754fb00dfea0d326123659019e48ffb4836566ff8a606

See more details on using hashes here.

Provenance

The following attestation bundles were made for arcana_mcp-0.1.1.tar.gz:

Publisher: publish.yml on samelie/arcana-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arcana_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: arcana_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for arcana_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d370eb40ddd7199651318ff18318423c4a076519a71d2cb38fb13ca55f2aa074
MD5 a9623b86d54080f1b864fd18bdf21f54
BLAKE2b-256 d396b5aa5f0982f500cec53357dffdf50adc3f8177550e57b85b689b5dc8e0b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for arcana_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on samelie/arcana-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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