Slac Mcp

io.github.DennisPredigerPublished by GitHub account DennisPredigerv1.1.1Updated Oct 24, 2026

MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents

VerifiedSTDIODesktop onlyDeveloper Tools

Overview

AI-generated overview

A local MCP server that exposes the SLAC expression compiler so an assistant can evaluate logic and arithmetic expressions and look up the language syntax.

What you can do
Evaluate a SLAC expression and get the compiled result back, by default as the Rust Display representation or as JSON when OUTPUT_FORMAT is set to JSON. Retrieve the full SLAC language reference covering syntax, operators, functions and examples. Work with arithmetic, string and conditional expressions such as max(10, 20) + 1 or len('test') > 2 ? 'long' : 'short'.
When to use it
Useful when an assistant needs to compute or check SLAC expressions, or needs the language reference to write valid SLAC syntax, rather than doing the arithmetic itself.
Requirements
Runs as a local process over stdio. The README's usage and development sections build and run it with Cargo and state it requires Rust 1.85+ (edition 2024); the manifest lists an npm package, slac-mcp. No accounts, API keys or headers are declared. OUTPUT_FORMAT=JSON is optional for JSON output.
Before you install
The README says the server is started with cargo run, while the manifest lists an npm package; confirm which install path applies before setting it up. Expressions are compiled and evaluated locally, so only pass expressions you are comfortable having evaluated.

Installation

In SourceWeft

  1. Open Slac Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

slac-mcp

MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents.

Tools

ToolParametersDescription
evaluateexpression: stringCompiles and evaluates a SLAC expression, returns the result
get_syntaxnoneReturns the full SLAC language reference (syntax, operators, functions, examples)

Usage

sh
cargo run

The server communicates over stdio using the Model Context Protocol.

Output Format

By default, evaluate returns the Rust Display representation of the result. Set OUTPUT_FORMAT=JSON to get serialized JSON instead

With MCP Inspector

sh
npx @modelcontextprotocol/inspector cargo run

Example expressions

1 + 2max(10, 20) + 1'hello' + ' ' + 'world'len('test') > 2 ? 'long' : 'short'

Development

sh
cargo buildcargo run

Requires Rust 1.85+ (edition 2024).

License

Copyright 2026 Dennis Prediger

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Source: npm/slac-mcp/README.md at commit a130e01

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.1.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts