XD

xlisp/datascript-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

40 stars 4 forks 质量 51 趋势 0MIT

xlisp/datascript-mcp-server 是从 https://github.com/xlisp/datascript-mcp-server. 导入的 MCP 服务器候选

概览

xlisp/datascript-mcp-server 是从 https://github.com/xlisp/datascript-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

人工智能。查询。可视化。扩展。 一台强大的基于Clojure的MCP服务器,用于查询DataScript并集成AI工作流程。


🔍 主要特色

🕸️ 图路径搜索与可视化

  • Datascript MCP 服务器 + 可视化 MCP 服务器

📂 查询亲子关系

📊 加载示例并计算总数

🧾 查询实体属性


⚙️ 开始

▶️ 运行MCP服务器

使用Clojure CLI运行:

或者来自Emacs REPL:


✅ 检查服务器健康状况

请使用以下命令验证服务器是否已启动并响应 JSON-RPC:

预期回应:


🖥️ MCP 客户端配置(Claude Desktop)

从Claude Desktop启动服务器的客户端示例设置:

  • 工具

🔮 路线图

  1. 导入并查询任意DataScript数据集 👉 load-db,使用Datascript transit
  2. 实时生成并插入AI生成的数据 👉 add_data
  3. 连接 Datomic 进行混合查询 👉 Datomic MCP 服务器
  4. 可视化关系图和实体网络 👉 可视化 MCP 服务器
  5. 支持文件系统帮助 👉 filesystem-mcp-server, clojure -X :mcp-filesystem

本页由 AI 翻译,技术细节请以原文为准。

README

🚀 Datascript MCP Server

AI. Query. Visualize. Extend. A powerful Clojure-based MCP server built for querying DataScript and integrating with AI workflows.


🔍 Key Features

🕸️ Graph path search and visualization

📂 Query parent-child relationships

📊 Load examples and compute totals

🧾 Query entity properties


⚙️ Getting Started

▶️ Run the MCP Server

Run with Clojure CLI:

clojure -X:mcp

Or from Emacs REPL:

(mcp-server)

✅ Check Server Health

Use the following command to verify that the server is up and responding to JSON-RPC:

echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test", "version": "1.0"}}}' \
| /usr/local/bin/clojure -M -m datascript-mcp.core

Expected response:

Datascript MCP Server running on STDIO transport.
{"jsonrpc":"2.0","method":"notifications/tools/list_changed"}
...
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2024-11-05","capabilities":{"logging":{},"tools":{"listChanged":true}},"serverInfo":{"name":"datascript-server","version":"0.1.0"}}}

🖥️ MCP Client Configuration (Claude Desktop)

Example client setup for launching the server from Claude Desktop:

{
  "datascript-mcp": {
    "command": "/bin/bash",
    "args": [
      "-c",
      "cd /Users/clojure/Desktop/datascript-mcp-server && /usr/local/bin/clojure -M -m datascript-mcp.core"
    ]
  }
}
  • Tools

🔮 Roadmap

  1. Import and query any DataScript dataset 👉 load-db, It’s use datascript transit
  2. Generate and insert AI-created data on the fly 👉 add_data
  3. Connect to Datomic for hybrid querying 👉 Datomic MCP Server
  4. Visualize relationship graphs and entity networks 👉 Visualization MCP Server
  5. Support filesystem help 👉 filesystem-mcp-server, clojure -X :mcp-filesystem
  6. Support Datahike’s MCP

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with Clojure. Powered by DataScript. Inspired by the future of intelligent querying. In the Source we trust.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →