Skip to content
MCP server

Ajisai

Exact rational and algebraic computation for AI agents through the Ajisai language

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted
Runs
Locally
Version
0.9.0
Listing updated
2 days ago

About Ajisai

Ajisai is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

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

Add to claude_desktop_config.json

{
  "mcpServers": {
    "ajisai": {
      "command": "npx",
      "args": [
        "-y",
        "ajisai-mcp-server"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "ajisai": {
      "command": "npx",
      "args": [
        "-y",
        "ajisai-mcp-server"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

What it does

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

Pricing

Open source

Prices change. Check masamoto1982.github.io before you buy.

Ajisai 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 to Ajisai

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools