MarsNMe

io.github.Marsmanleo由 GitHub 账号 Marsmanleo 发布v0.3.2更新于 Oct 24, 2026

Agent-agnostic memory backend that preserves continuity between humans and AI over time.

已验证STDIO仅桌面数据库知识与记忆

概览

AI 生成的概览

一个本地 MCP 网关,为 AI 助手提供持久记忆后端,通过 Supabase 数据库跨会话保存和检索上下文。

可以做什么
按配置档(profile)保存和检索记忆条目,让对话之间保持连续性(清单中未列出具体工具)。在本地以 streamable HTTP 提供记忆工具,端点为 POST /mcp,并提供 GET /health 健康检查。使用 Jina 嵌入实现语义记忆搜索。按配置档 ID 隔离记忆数据,并可选启用 Bearer 令牌或 OAuth 保护 MCP 调用。
适用场景
当你希望助手跨会话记住人物、偏好或先前上下文,并愿意运行一个由自己 Supabase 项目支撑的本地网关时使用。适合单用户或少数命名配置档共享一个记忆库的桌面环境。
运行要求
需要 Node.js 20 或更高版本,通过 npx 运行。需要一个已应用所需数据库迁移的 Supabase 项目,以及 SUPABASE_BASE_URL 和 SUPABASE_SERVICE_ROLE_KEY。语义搜索需要 JINA_API_KEY 中的 Jina API 密钥。MCP_PROFILE 为必填,PORT 可选。仅支持桌面端。
安装前请注意
Supabase service role 密钥会绕过行级安全,应妥善保密,并且只指向自己掌控的数据库。记忆内容会发送到 Supabase,用于嵌入时还会发送到 Jina。网关会写入你的数据库,升级时需用具备 DDL 权限的角色执行迁移。Bearer 或 OAuth 保护为可选项,未配置时不会启用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MarsNMe,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@marsnme/mcp-gateway

[MarsNMe demo]

MarsNMe MCP Gateway for memory tools over streamable HTTP transport.

This package runs an MCP server at POST /mcp and exposes health status at GET /health.

Requirements

  • Node.js >=20
  • Supabase project with required schema migrations applied
  • Jina API key for embedding-based memory search

Quick start (npx)

bash
MCP_PROFILE=coco \SUPABASE_BASE_URL=https://<your-project-ref>.supabase.co \SUPABASE_SERVICE_ROLE_KEY=<your-service-role-key> \JINA_API_KEY=<your-jina-api-key> \npx -y @marsnme/mcp-gateway

After startup:

  • Health: http://127.0.0.1:18790/health
  • MCP endpoint: http://127.0.0.1:18790/mcp

Required environment variables

  • MCP_PROFILE
    • Any lowercase profile ID matching ^[a-z][a-z0-9_-]*$ (for example: coco, toto, my-agent)
    • Legacy built-in IDs: coco and toto
  • SUPABASE_BASE_URL
    • Your Supabase REST project URL
  • SUPABASE_SERVICE_ROLE_KEY (recommended) or SUPABASE_SERVICE_KEY
    • Service role key used for database operations
  • JINA_API_KEY
    • Required for semantic search / embedding features

Common optional environment variables

  • PORT
    • Overrides the HTTP port used by the gateway
    • If omitted, the gateway resolves a profile-based default:
      • coco → 18790
      • toto → 18791
      • other profile IDs → deterministic port in 20000-29999
  • MCP_REQUIRE_BEARER
    • Set true to require Authorization: Bearer <token> on MCP calls
  • MCP_OAUTH_ENABLED
    • OAuth endpoints are enabled by default (set false to disable)
  • MCP_CLIENT_ID and MCP_CLIENT_SECRET
    • Optional static OAuth client credentials

Minimal validation

Check service health:

bash
curl -sS http://127.0.0.1:18790/health

List tools:

bash
curl -sS http://127.0.0.1:18790/mcp \  -H 'content-type: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Deployment safety gate (before restart)

For upgrades, run database migrations with an explicit DDL-capable role and gate schema compatibility before restarting services.

Recommended role guidance:

  • Use a role that can execute DDL on target schemas.
  • On Supabase-hosted Postgres this is typically supabase_admin (not postgres).

Schema gate command:

bash
bash deploy/phase2/pre_deploy_schema_gate.sh \  --db-url "<postgres://supabase_admin:<password>@<host>:5432/postgres>" \  --profiles coco,toto \  --expected-role supabase_admin
  • If gate exits non-zero, stop deployment and do not restart services.

Database setup and full onboarding

For migrations and full setup details:

来源:marsnme-supabase/README.md,提交 cf67212

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.3.2最新Oct 18, 2026
  2. v0.3.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分