# Ajisai

> Ajisai is an open-source MCP server for developer tools. Exact rational and algebraic computation for AI agents through the Ajisai language. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://masamoto1982.github.io/Ajisai/
- **Repository:** https://github.com/masamoto1982/ajisai/tree/HEAD/tools/mcp-server
- **MCP Registry name:** io.github.masamoto1982/ajisai
- **Categories:** developer tools
- **Listing updated:** 2026-11-15

## About

Ajisai is a vector-oriented, fractional-dataflow language, and this server exposes it as a bounded, deterministic computation kernel for agents. Its README is careful about scope: it promises exactness within the supported numeric domain, not unqualified freedom from rounding, and explicit rounding keeps its documented behaviour.

The server is a thin adapter. The language semantics live in a Rust engine and the vocabulary comes from generated artifacts, and the registry description mentions machine-readable Word contracts. The npm package ships a WASM backend, so Node 20 or newer is the only requirement; an optional AJISAI_BIN setting selects a native binary instead, and both backends are said to answer identically.

Running the package with --doctor performs two real computations, 2 3 DIV 1 3 DIV ADD and 2 SQRT, and exits non-zero if the answers are wrong, which suits container health gating. --version reports adapter, engine and spec versions.

## Features

- **Exact arithmetic:** Computes with rationals and algebraic values inside the supported domain.
- **Packaged WASM backend:** No build step, cargo or native binary needed.
- **Native override:** AJISAI_BIN can point to a native binary instead.
- **Doctor command:** Runs real computations and exits 1 if the result is wrong.
- **Word contracts:** Machine-readable contracts for the language's words.
- **Works with common clients:** Same JSON entry for Claude Desktop, Claude Code and Cursor.

## Good for

- Let an agent do fractions without floating-point error
- Verify arithmetic results deterministically
- Gate a container start on a working install
- Explore Ajisai words and their contracts
- Compute square roots exactly

## Install

### Claude Code (Terminal)

```sh
claude mcp add ajisai -- npx -y ajisai-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ajisai": {
      "command": "npx",
      "args": [
        "-y",
        "ajisai-mcp-server"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ajisai": {
      "command": "npx",
      "args": [
        "-y",
        "ajisai-mcp-server"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "ajisai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ajisai-mcp-server"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "ajisai": {
      "command": "npx",
      "args": [
        "-y",
        "ajisai-mcp-server"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ajisai": {
      "command": "npx",
      "args": [
        "-y",
        "ajisai-mcp-server"
      ]
    }
  }
}
```

## FAQ

### What do I need to run it?

Node 20 or newer; the package carries its WASM backend.

### How do I check it works?

Run npx -y ajisai-mcp-server --doctor.

### Does it promise no rounding errors?

Only exactness in its supported numeric domain; explicit rounding and out-of-domain functions keep their documented semantics.

### Can I use a native binary?

Yes, set AJISAI_BIN.

### Is Ajisai free?

Yes. Ajisai is open source, so you can use and self-host it for free.

### How do I add Ajisai to Claude Code?

Run this command in your terminal: claude mcp add ajisai -- npx -y ajisai-mcp-server

### What are the best alternatives to Ajisai?

The closest alternatives to Ajisai are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/ajisai
