Agent SkillsYARlabs/hyperspace-db › hyperspacedb-mcp

hyperspacedb-mcp

GitHub

提供HyperspaceDB的MCP服务配置与使用指南,支持在Claude、Cursor等AI宿主中通过30+工具进行向量数据库操作,涵盖集合管理、数据增删查及语义搜索等功能。

integrations/hyperspacedb-skills/skills/hyperspacedb-mcp/SKILL.md YARlabs/hyperspace-db

触发场景

MCP Claude Desktop Cursor MCP hyperspace_search hyperspace_insert model context protocol mcp-hyperspacedb

安装

npx skills add YARlabs/hyperspace-db --skill hyperspacedb-mcp -g -y
更多选项

非标准路径

npx skills add https://github.com/YARlabs/hyperspace-db/tree/main/integrations/hyperspacedb-skills/skills/hyperspacedb-mcp -g -y

不安装直接使用

npx skills use YARlabs/hyperspace-db@hyperspacedb-mcp

指定 Agent (Claude Code)

npx skills add YARlabs/hyperspace-db --skill hyperspacedb-mcp -a claude-code -g -y

安装 repo 全部 skill

npx skills add YARlabs/hyperspace-db --all -g -y

预览 repo 内 skill

npx skills add YARlabs/hyperspace-db --list

SKILL.md

Frontmatter
{
    "name": "hyperspacedb-mcp",
    "description": "Model Context Protocol (MCP) server for HyperspaceDB. Use this skill to configure, connect, and use HyperspaceDB tools in Claude Desktop, Cursor, Windsurf, Antigravity, or any MCP-compatible AI host. Covers all 30+ available MCP tools. Trigger on: \"MCP\", \"Claude Desktop\", \"Cursor MCP\", \"hyperspace_search\", \"hyperspace_insert\", \"model context protocol\", \"mcp-hyperspacedb\", \"tool use\"."
}

HyperspaceDB MCP Server

The mcp-hyperspacedb server exposes all HyperspaceDB capabilities as MCP tools, letting any MCP-compatible AI host (Claude, Cursor, Windsurf, Antigravity, etc.) directly interact with the database — without writing any integration code.


Setup

Quick Start (Recommended)

npx mcp-hyperspacedb

MCP Host Configuration

Add to your MCP config file (e.g., claude_desktop_config.json, .cursor/mcp.json):

{
  "mcpServers": {
    "hyperspacedb": {
      "command": "npx",
      "args": ["-y", "mcp-hyperspacedb"],
      "env": {
        "HYPERSPACE_HOST": "your-node.example.com:50051",
        "HYPERSPACE_API_KEY": "your_secret_key"
      }
    }
  }
}

Config file locations by host:

Host Config path
Claude Desktop (macOS) ~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows) %APPDATA%\Claude\claude_desktop_config.json
Cursor .cursor/mcp.json in project root
Windsurf ~/.windsurf/mcp.json
Antigravity / custom Per host documentation

Environment Variables

Variable Default Description
HYPERSPACE_HOST localhost:50051 gRPC address of HyperspaceDB node
HYPERSPACE_API_KEY I_LOVE_HYPERSPACEDB Authentication key

Never hardcode these values. Always pass via environment variables.


Complete Tool Reference

📁 Collection Management

Tool Description
hyperspace_list_collections List all collections with stats
hyperspace_create_collection Create a new collection (name, dimension, metric: cosine/l2/lorentz/poincare/hybrid, cascadePipeline)
hyperspace_delete_collection Permanently delete a collection and all vectors
hyperspace_freeze_collection Make collection read-only
hyperspace_unfreeze_collection Re-enable inserts
hyperspace_rebuild_index Rebuild and optimize the HNSW index
hyperspace_vacuum Purge soft-deleted vectors, reclaim disk space

📥 Data Operations

Tool Description
hyperspace_insert_text Insert text (auto-embedded server-side)
hyperspace_delete_points Delete a vector by ID
hyperspace_get_points Retrieve vectors by IDs

🔍 Search

Tool Description
hyperspace_search_text Semantic search by text query; supports hybrid_alpha for BM25 fusion
hyperspace_search_wasserstein Optimal Transport cross-distribution search

🕸️ Graph & Hierarchy

Tool Description
hyperspace_get_neighbors Direct HNSW neighbors of a node
hyperspace_graph_traverse BFS/DFS multi-hop traversal
hyperspace_explore_graph Visualization-ready graph data (nodes + edges)
hyperspace_get_subsumption_tree Lorentz hierarchy tree from a root concept
hyperspace_get_concept_parents Parent concepts in the hierarchy
hyperspace_find_clusters Unsupervised cluster detection

🧠 Cognitive AI

Tool Description
hyperspace_analyze_thought_stability Lyapunov CoT convergence analysis (returns { lyapunov_exponent, is_stable })
hyperspace_predict_momentum Koopman trajectory momentum forecast (returns number[] — next vector)
hyperspace_get_trust_score Composite reasoning trust score (returns number 0–1)
hyperspace_analyze_geometry Gromov Delta analysis → optimal metric (cosine/l2/lorentz/poincare/hybrid)

⚙️ System & Cache

Tool Description
hyperspace_get_stats Node telemetry, vector counts, clock
hyperspace_trigger_reconsolidation Trigger Flow Matching sleep-mode optimization
hyperspace_cache_stats L0 cache hit/miss statistics
hyperspace_cache_clear Clear L0 cache for a collection
hyperspace_cache_config Update cache eviction policy and ANN threshold

Example Prompts

Once connected, you can say to your AI agent:

"Create a collection called 'team_memory' with cosine metric and 1536 dimensions."

"Search 'team_memory' for documents about Kubernetes deployments."

"Analyze the geometry of these vectors and tell me the best metric to use."

"Check if my reasoning chain [ids: 1,2,3,4,5] is stable or diverging."

"Show me the parent concepts of node 42 in 'knowledge_graph'."

"What are the main topic clusters in 'research_papers'?"

How Cognitive Tools Work

The MCP server implements cognitive tools as client-side computations:

  1. getPoints() fetches the stored vectors for the given trajectory IDs
  2. Mathematical analysis (Lyapunov, Koopman, trust) runs inside the MCP server process
  3. Results are returned without any server-side RPC for the math itself

This means cognitive tools work against any version of the HyperspaceDB server.

Geometry awareness: When collection metric is hybrid, momentum extrapolation splits the vector into Lorentz (first 33 dims) and Euclidean (remaining dims) parts, extrapolates each independently, then recombines.


See Also

版本历史

  • cc17a8d 当前 2026-07-25 09:06

同 Skill 集合

integrations/hyperspacedb-skills/skills/hyperspacedb-cognitive/SKILL.md
integrations/hyperspacedb-skills/skills/hyperspacedb-core/SKILL.md
integrations/hyperspacedb-skills/skills/hyperspacedb-depin/SKILL.md
integrations/hyperspacedb-skills/skills/hyperspacedb-graph/SKILL.md

元信息

文件数
0
版本
c4d2842
Hash
f694417c
收录时间
2026-07-25 09:06

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-04 04:03
浙ICP备14020137号-1 $访客地图$