
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
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.
Installation
In SourceWeft
- Open Slac Mcp in the dashboard and add it to a workspace.
- 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
Usage
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
Example expressions
Development
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
0Version history
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