Token导航 LogoToken导航TokenDH.com
Moonshine MCP logo
数据服务stdio官方级别未说明来源级核验

Moonshine MCP

MCP Server

@cognito-distillery/moonshine-mcp

Moonshine MCP Server是一个连接AI助手(如Claude、ChatGPT、Gemini等)与Moonshine知识图谱的协议服务器,支持直接读取SQLite数据库文件,无需运行Moonshine主程序。

工具数

13

提示词数

0

GitHub Stars

0

资源数

0
数据管理TypeScriptClaude知识图谱Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

JangVincent

提供方

JangVincent

最后核验

2026/5/17 20:21

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx @cognito-distillery/moonshine-mcp

详细介绍

Moonshine MCP Server

Let AI assistants tap into your knowledge graph.

한국어

______________________________________________________________________

它直接读取SQLite数据库文件,因此 Moonshine不需要运行.

______________________________________________________________________

先决条件

  • v20+
  • 月光酒 安装时至少创建了一个mash
  • *(可选)* 来自的API密钥 开放人工智能谷歌双子座 --只需要 search_semantic

______________________________________________________________________

设置

克劳德桌面

添加到您的Claude Desktop配置中:

平台配置路径
Linux~/.config/Claude/claude_desktop_config.json
macOS~/Library/Application Support/Claude/claude_desktop_config.json
视窗%APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "moonshine": {
      "command": "npx",
      "args": ["@cognito-distillery/moonshine-mcp"]
    }
  }
}

克劳德代码

claude mcp add moonshine -- npx @cognito-distillery/moonshine-mcp

其他MCP客户端

任何兼容MCP的客户端都可以通过以下方式连接 stdio传输:

npx @cognito-distillery/moonshine-mcp

______________________________________________________________________

数据库路径

服务器会自动找到您的Moonshine数据库:

平台默认路径
Linux~/.local/share/com.moonshine.app/moonshine.db
macOS~/Library/Application Support/com.moonshine.app/moonshine.db
视窗C:\Users\{user}\AppData\Roaming\com.moonshine.app\moonshine.db

用覆盖 MOONSHINE_DB_PATH 环境变量(如果需要):

{
  "mcpServers": {
    "moonshine": {
      "command": "npx",
      "args": ["@cognito-distillery/moonshine-mcp"],
      "env": {
        "MOONSHINE_DB_PATH": "/custom/path/to/moonshine.db"
      }
    }
  }
}

______________________________________________________________________

工具

捣碎CRUD

工具说明
list_mashes列出掩码,可选择按状态和类型进行筛选
get_mash按ID获取单个mash
create_mash创建一个新的mash(以mash_TUN开头)
update_mash部分更新mash的类型、摘要、上下文或备忘录
delete_mash删除mash及其关联边

搜索

工具说明
search_keyword使用FTS5三元组标记器进行全文关键字搜索(韩语友好)
search_semantic使用嵌入的语义相似性搜索(需要Moonshine设置中的API密钥)

知识图谱

工具说明
get_graph通过按类型、关系或源进行可选过滤,获取JARRED mashes的完整图
get_node_detail获取一个节点及其邻居和连接边
add_edge添加或打乱两个面具之间的关系
update_edge更新边的关系类型或置信度
delete_edge删除边

统计

工具说明
get_stats按状态/类型和总边缘计数获取mash计数

______________________________________________________________________

环境变量

变量描述默认值
MOONSHINE_DB_PATH覆盖数据库文件路径按平台自动检测
MOONSHINE_READ_ONLY设置为 true 阻止所有写入操作false
MOONSHINE_DEBUG设置为 true 用于详细的stderr日志记录false

______________________________________________________________________

验证

跑吧 MCP检查员 交互式测试工具:

npx @modelcontextprotocol/inspector node dist/index.js

______________________________________________________________________

安全

  • password_hashsession_token从不暴露 通过任何工具
  • API键在内部从设置表中读取,但是 再也没有回来 在工具响应中
  • 使用 MOONSHINE_READ_ONLY=true 防止任何数据库写入
  • WAL模式允许在运行Moonshine应用程序的同时进行安全的并发读取

______________________________________________________________________

许可证

麻省理工学院

______________________________________________________________________

under the moonlight, in silence.

目录标签

目录标签

数据管理TypeScriptClaude知识图谱AI连接本地部署SQLite模型协议

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@cognito-distillery/moonshine-mcp

工具数量(toolCount,工具数)

13

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

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

来源信息

继续浏览同类 MCP