Skip to main content

MCP server for ArrowSpace spectral vector search

Project description

ArrowSpace MCP

MCP (Model Context Protocol) server for ArrowSpace spectral vector search.

Exposes ArrowSpace's graph-Laplacian-based spectral search as MCP tools for AI agents.

Quick start

uv run arrowspace-mcp

Client configuration

Claude Desktop

{
  "mcpServers": {
    "arrowspace": {
      "command": "uvx",
      "args": ["arrowspace-mcp"]
    }
  }
}

Cursor

Add to Cursor MCP configuration:

{
  "mcpServers": {
    "arrowspace": {
      "command": "uvx",
      "args": ["arrowspace-mcp"]
    }
  }
}

OpenCode

{
  "mcpServers": {
    "arrowspace": {
      "command": "uvx",
      "args": ["arrowspace-mcp"]
    }
  }
}

Transports

Transport Command
stdio (default) uv run arrowspace-mcp
SSE uv run arrowspace-mcp --transport sse --port 8765

CLI flags

Flag Default Description
--transport stdio Transport protocol (stdio or sse)
--host 127.0.0.1 Host to bind (SSE only)
--port 8765 Port to bind (SSE only)
--allowed-paths . Colon-separated allowed directories for file_path
--ttl 3600 Index TTL in seconds
--max-indexes 100 Maximum concurrent indexes

Tools

Tool Description
build_index Build a spectral index from vectors (inline or file)
search Query with λτ spectral gating
lambdas Per-item λτ scores with optional summary stats
lambdas_sorted Sorted λτ scores (least to most coherent)
spectral_analysis Laplacian eigenvalue spectrum, components, or clusters
delete_index Remove an index from memory

SSE deployment

uv run arrowspace-mcp --transport sse --host 0.0.0.0 --port 8765

Connect via http://<host>:8765/sse with messages at http://<host>:8765/messages/.

Development

git clone https://github.com/Genefold/arrowspace-mcp
cd arrowspace-mcp
uv pip install -e .
uv run arrowspace-mcp

With optional deps for spectral analysis

uv pip install -e ".[spectral]"

License

Apache 2.0

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

arrowspace_mcp-0.3.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

arrowspace_mcp-0.3.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file arrowspace_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: arrowspace_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for arrowspace_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 85aeb71eb07799161c3b79b9f805f068dfaa4523e6d084714b8e874c33e755dd
MD5 30635411a77e1d6a6afa6e1156838a43
BLAKE2b-256 4d05758949addebd81d38109adcd8f629782dd3d9858d57fe69a1ee75e4aaabb

See more details on using hashes here.

File details

Details for the file arrowspace_mcp-0.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for arrowspace_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 627155e67b28d02001396406c6d8ee284d6bdf00e43987f47669f60b083e8e34
MD5 c61a2e0e1ac472683736a12bf71ac173
BLAKE2b-256 2b2844875c0a93dcd39a6057df17d1090cf2479d4c8c7c9bda4b0b0b1cb4567c

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