Token导航 LogoToken导航

MCP Server · 搜索检索

Longbow MCP

基于Longbow分布式向量数据库的现代MCP服务器,提供实时UI和跨客户端持久性记忆功能。

stdio官方级别未说明来源级核验工具 9
向量搜索混合搜索PythonClaude

快速开始

作者 / 组织
TerminallyLazy
提供方
TerminallyLazy

工具数量

9

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

1

仓库热度

收录来源

1 个

MCP World

选型结论

Longbow MCP 属于搜索检索类 MCP Server,公开资料标注 9 个工具,通过stdio 本地进程接入,适配 Claude,有可以直接复制的安装命令;接入前先确认权限范围。

分类

搜索检索

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

pip install -r requirements.txt

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 对应的运行时,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 9 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

长弓MCP

一个现代的MCP(模型上下文协议)服务器,具有跨客户端持久内存的实时UI,由Longbow分布式向量数据库及其官方Python SDK提供支持。

特性

  • MCP协议:通过stdio和SSE传输实现完整的MCP
  • 向量搜索:使用Longbow SDK+句子转换器进行语义记忆搜索
  • 混合搜索:矢量+文本搜索与可配置阿尔法混合相结合
  • 筛选的搜索:使用元数据谓词过滤器进行矢量搜索
  • 按ID搜索:寻找与现有记忆相似的记忆
  • 图的运算:内存之间的有向关系边和图遍历
  • 实时用户界面:具有Three.js光线行进着色器背景的WebSocket桥
  • 设计系统:午夜翡翠-黑曜石、翡翠、赛博石灰玻璃形态
  • 一个命令部署: docker compose up -d 开始一切

建筑

graph TD
    %% --- Color Definitions for Dark/Light Mode Compatibility ---
    %% Using a "Nord" style palette for professional, non-clashing look.
    %% Dark desaturated fills with light text ensures readability on both backgrounds.

    %% Standard functional nodes (Dark Blue-Gray fill, Light Blue stroke)
    classDef node_std fill:#3b4252,stroke:#81a1c1,stroke-width:1px,color:#eceff4;

    %% Container/Subgraph (Transparent fill is safest to adapt to background color, light stroke)
    classDef container fill:none,stroke:#d8dee9,stroke-width:2px,stroke-dasharray: 5 5,color:#eceff4;

    %% Database Node (Deeper Gray fill, Cyan stroke)
    classDef db_node fill:#2e3440,stroke:#88c0d0,stroke-width:2px,color:#eceff4,rx:5,ry:5;

    %% UI Node (Muted Purple/Gray fill, Purple stroke)
    classDef ui_node fill:#4c566a,stroke:#b48ead,stroke-width:2px,color:#eceff4;

    %% Ensure connecting lines are light enough to see on dark backgrounds
    linkStyle default stroke:#d8dee9,stroke-width:2px,fill:none;

    %% --- Diagram Structure ---
    subgraph Longbow_MCP [Longbow MCP]
        direction TB
        
        %% Top Row Components
        stdio[MCP stdio
Protocol]:::node_std
        fastapi[FastAPI
+ WebSocket]:::node_std
        
        %% Middle Row Components
        sse[MCP SSE
Transport]:::node_std
        memory[MemoryStore
Longbow]:::node_std
        
        %% Database Component
        %% Using the cylinder shape [()]
        vectordb[(Longbow Vector DB
Arrow Flight gRPC
Data:3000 Meta:3001)]:::db_node

        %% Internal Connections
        stdio  fastapi
        fastapi --> memory
        sse  memory
        memory --> vectordb
    end

    %% External Client
    client[React + Vite UI
Three.js Shader
Bento-Grid HUD]:::ui_node

    %% External Connection using thick arrow ==>
    fastapi ==>|WebSocket| client

    %% Apply Container Class
    class Longbow_MCP container

快速开始

# Clone the repository
git clone https://github.com/TerminallyLazy/longbow-mcp.git
cd longbow-mcp

# Run everything with Docker Compose
docker compose up -d

服务

服务URL描述
长弓数据grpc://localhost:3000箭头飞行矢量存储
长弓梅塔grpc://localhost:3001箭头飞行元数据
API服务器http://localhost:8000FastAPI+WebSocket端点
API文档http://localhost:8000/docsOpenAPI/Swagger用户界面
MCP SSEhttp://localhost:8765MCP客户端的SSE传输
Web UIhttp://localhost:3080React+Three.js接口
WebSocketws://localhost:3080/ws实时内存更新(通过nginx)

MCP工具

服务器通过stdio和SSE传输提供这些MCP工具:

核心工具

  • add_memory --通过语义嵌入存储新记忆
  • search_memories --语义向量相似度搜索(KNN)
  • list_memories --列出所有带分页的内存
  • delete_all_memories --清除内存存储

搜索工具

  • hybrid_search_memories --混合矢量+文本搜索与阿尔法混合(alpha=1.0 纯矢量, alpha=0.0 纯文本)
  • search_similar_memory --通过ID查找与现有记忆相似的记忆
  • filtered_search_memories --使用元数据谓词过滤器进行矢量搜索(例如。 {"field":"client_id","op":"eq","value":"web-ui"})

图形工具

  • add_memory_edge --在两个记忆之间添加有向关系边(带谓词和权重)
  • traverse_memory_graph --从起始内存遍历图形(可配置跳数、衰减、方向)

MCP客户端配置

克劳德代码(stdio)

添加到您的项目 .mcp.json:

{
  "mcpServers": {
    "longbow-mcp": {
      "command": "python",
      "args": ["server/mcp_server.py"],
      "cwd": "/path/to/longbow-mcp"
    }
  }
}

代理零/SSE客户

MCP SSE传输可在 http://localhost:8765/sse 对于支持服务器发送事件的任何MCP客户端。

在主机上运行的Agent Zero:

{
  "mcpServers": {
    "longbow-mcp": {
      "description": "Persistent vector memory with semantic, hybrid, filtered search and graph operations",
      "url": "http://localhost:8765/sse"
    }
  }
}

Docker中运行的Agent Zero(在Mac/Windows上):

当你的MCP客户端在自己的Docker容器中运行时, localhost 指的是容器自己的网络,而不是主机。使用 host.docker.internal 要访问主机映射端口:

{
  "mcpServers": {
    "longbow-mcp": {
      "description": "Persistent vector memory with semantic, hybrid, filtered search and graph operations",
      "url": "http://host.docker.internal:8765/sse"
    }
  }
}

Docker中运行的Agent Zero(在Linux上):

Linux需要额外的主机条目。将此添加到您的Agent Zero服务中 docker-compose.yml:

extra_hosts:
  - "host.docker.internal:host-gateway"

然后使用相同的 host.docker.internal:8765 上面的URL。

共享Docker网络(替代方案):

如果Longbow MCP和您的客户端都使用Docker Compose,您可以将它们放在同一个网络上。将此添加到客户的 docker-compose.yml:

networks:
  default:
    name: mcp-memory_mcp-network
    external: true

然后直接按服务名称连接:

{
  "mcpServers": {
    "longbow-mcp": {
      "description": "Persistent vector memory with semantic, hybrid, filtered search and graph operations",
      "url": "http://mcp-sse:8765/sse"
    }
  }
}

克劳德桌面版

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "longbow-mcp": {
      "command": "bash",
      "args": ["/path/to/longbow-mcp/run_mcp_server.sh"]
    }
  }
}

API终点

健康与信息

# Health check
curl http://localhost:8000/health

# Memory statistics
curl http://localhost:8000/stats

# Longbow dataset metadata (record count, byte size)
curl http://localhost:8000/dataset/info

内存CRUD

# Add memory
curl -X POST http://localhost:8000/memories \
  -H "Content-Type: application/json" \
  -d '{
    "content": "TensorFlow is a machine learning framework",
    "metadata": {"category": "ai"}
  }'

# List memories
curl http://localhost:8000/memories

# Delete all
curl -X DELETE http://localhost:8000/memories

搜索

# Vector KNN search
curl -X POST http://localhost:8000/search \
  -H "Content-Type: application/json" \
  -d '{"query": "machine learning", "top_k": 5}'

# Hybrid search (vector + text blend)
curl -X POST http://localhost:8000/search/hybrid \
  -H "Content-Type: application/json" \
  -d '{"query": "neural networks", "top_k": 5, "alpha": 0.7}'

# Search by memory ID (find similar)
curl -X POST http://localhost:8000/search/by-id \
  -H "Content-Type: application/json" \
  -d '{"memory_id": "550e8400-e29b-41d4-a716-446655440000", "top_k": 5}'

# Filtered search (vector + metadata predicates)
curl -X POST http://localhost:8000/search/filtered \
  -H "Content-Type: application/json" \
  -d '{
    "query": "deep learning",
    "top_k": 5,
    "filters": [{"field": "client_id", "op": "eq", "value": "web-ui"}]
  }'

图

# Add relationship edge
curl -X POST http://localhost:8000/graph/edge \
  -H "Content-Type: application/json" \
  -d '{
    "source_id": "uuid-1",
    "target_id": "uuid-2",
    "predicate": "related_to",
    "weight": 0.9
  }'

# Traverse graph from a memory
curl -X POST http://localhost:8000/graph/traverse \
  -H "Content-Type: application/json" \
  -d '{
    "start_id": "uuid-1",
    "max_hops": 3,
    "weighted": true
  }'

坚持

# Trigger manual snapshot
curl -X POST http://localhost:8000/snapshot

WebSocket操作

连接到 ws://localhost:8000/ws 并发送JSON消息:

操作参数响应类型
ping—pong
get_stats—stats
list_memorieslimit, offsetmemories_list
searchquery, top_ksearch_results (搜索类型: knn)
hybrid_searchquery, top_k, alphasearch_results (搜索类型: hybrid)
search_by_idmemory_id, top_ksearch_results (搜索类型: by_id)
filtered_searchquery, top_k, filterssearch_results (搜索类型: filtered)
traversestart_id, max_hops, incoming, decay, weightedtraverse_results
add_memorycontent, client_id, metadata广播: memory_added
delete_all--广播: memories_deleted

UI组件

  • Three背景.tsx -光线行进着色器(对内存计数做出反应)
  • 内存HUD.tsx -主便当网格仪表板
  • 记忆卡.tsx -具有发光效果的个人记忆
  • 搜索面板.tsx -语义搜索界面
  • 添加内存表单.tsx -使用元数据创建内存
  • 使用Memory Bridge.ts -WebSocket挂钩用于实时更新

设计系统

午夜翡翠主题:

  • 背景:#050505(黑曜石)
  • 初级:#5EF7A6(祖母绿)
  • 口音:#FFFF21(Cyber Lime)
  • 排版:Space Grotesk
  • 风格:玻璃造型、便当格、霓虹灯

文件结构

longbow-mcp/
├── docker-compose.yml         # Services orchestration
├── run_mcp_server.sh          # MCP stdio runner
├── run_mcp_sse.sh             # MCP SSE runner
├── setup.sh                   # Local dev setup
├── server/
│   ├── Dockerfile.server      # Python container
│   ├── requirements.txt       # Dependencies (Longbow SDK)
│   ├── models.py             # Pydantic models
│   ├── memory_store.py       # Longbow SDK vector storage
│   ├── mcp_tools.py          # Shared MCP tool definitions & handlers
│   ├── mcp_server.py         # MCP stdio protocol
│   ├── mcp_server_sse.py     # MCP SSE protocol
│   └── api.py                # FastAPI + WebSocket + REST
└── ui/
    ├── Dockerfile.ui          # Node container
    ├── nginx.conf            # Reverse proxy
    ├── package.json          # Dependencies
    ├── tailwind.config.js    # Design system
    ├── vite.config.ts        # Build config
    └── src/
        ├── main.tsx          # Entry point
        ├── App.tsx           # Main app
        ├── hooks/
        │   └── useMemoryBridge.ts
        ├── components/
        │   ├── ThreeBackground.tsx
        │   ├── MemoryHUD.tsx
        │   ├── MemoryCard.tsx
        │   ├── SearchPanel.tsx
        │   └── AddMemoryForm.tsx
        └── styles/
            └── index.css

手动启动(无Docker)

# Terminal 1: Start Longbow (requires Longbow installed)
longbow serve

# Terminal 2: Start API server
cd server
pip install -r requirements.txt
uvicorn api:app --host 0.0.0.0 --port 8000

# Terminal 3: Start MCP SSE server
cd server
python mcp_server_sse.py

# Terminal 4: Start UI dev server
cd ui
npm install
npm run dev

技术栈

后端:

  • Python 3.11
  • 快速API
  • Longbow SDK(longbowclientsdk)——Longbow矢量数据库的官方Python客户端
  • Longbow(Apache Arrow Flight gRPC)——矢量存储、图形、混合搜索
  • 句子变换器(全MiniLM-L6-v2)--384个dim嵌入
  • MCP SDK(标准IO+SSE传输)
  • Starlette(SSE服务器)
  • 双向通信

前端:

  • 反应18
  • TypeScript
  • 快5
  • Three.js(raymarching)
  • Tailwind CSS
  • Lucide图标

基础设施:

  • 码头工人
  • Docker Compose
  • Nginx

许可证

麻省理工学院

工具与能力

工具数量

9

资源数量

0

提示词数量

0

能力标签

向量搜索Python本地部署混合搜索图遍历实时UI语义记忆

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

查资料带出处

把网页、论文和文档的检索结果连同链接一起带回对话。

站内知识检索

在自己的文档库里做语义搜索,比关键词更贴题。

事实核对

交叉多个来源确认一条信息,减少模型凭记忆作答。

选择建议

值得选的地方

  • 只提供 9 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 运行环境,换机器要重新装一遍。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在搜索检索场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Longbow MCP

MCP World · 本页

9stdio有1 个2026-05-17
Baidu Netdisk

MCP World

未标注未说明未标注1 个2026-05-17
Sequentialthinking

MCP.so

1SSE有2 个2026-05-17
Brave Search 433812ff

MCP World

2未说明未标注1 个2026-05-17
mindsdb (430e18)

MCP World

0未说明有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Longbow MCP 怎么安装?

公开资料给出的安装命令是 pip install -r requirements.txt,运行环境为 未标注。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Longbow MCP 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

Longbow MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Longbow MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Longbow MCP 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP