# Datascript Mcp Server

> 🚀 Datascript MCP Server

- **Type:** MCP server
- **Install:** `agentstack add mcp-xlisp-datascript-mcp-server`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [xlisp](https://agentstack.voostack.com/s/xlisp)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [xlisp](https://github.com/xlisp)
- **Source:** https://github.com/xlisp/datascript-mcp-server

## Install

```sh
agentstack add mcp-xlisp-datascript-mcp-server
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 🚀 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

* Datascript MCP Server + [Visualization MCP Server](https://github.com/xlisp/visualization-mcp-server)

### 📂 Query parent-child relationships

### 📊 Load examples and compute totals

### 🧾 Query entity properties

---

## ⚙️ Getting Started

### ▶️ Run the MCP Server

Run with Clojure CLI:

```bash
clojure -X:mcp
```

Or from Emacs REPL:

```clojure
(mcp-server)
```

---

### ✅ Check Server Health

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

```bash
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:

```json
{
  "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](https://github.com/tonsky/datascript-transit)
2. **Generate and insert AI-created data on the fly** 👉 `add_data`
3. **Connect to Datomic for hybrid querying** 👉 [Datomic MCP Server](https://github.com/xlisp/datomic-mcp-server)
4. **Visualize relationship graphs and entity networks** 👉 [Visualization MCP Server](https://github.com/xlisp/visualization-mcp-server)
5. **Support filesystem help** 👉 [filesystem-mcp-server](./src/datascript_mcp/filesystem.clj), `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](LICENSE) file for details.

---

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

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [xlisp](https://github.com/xlisp)
- **Source:** [xlisp/datascript-mcp-server](https://github.com/xlisp/datascript-mcp-server)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-xlisp-datascript-mcp-server
- Seller: https://agentstack.voostack.com/s/xlisp
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
