MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents
MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents.
| Tool | Parameters | Description |
|---|---|---|
evaluate | expression: string | Compiles and evaluates a SLAC expression, returns the result |
get_syntax | none | Returns the full SLAC language reference (syntax, operators, functions, examples) |
cargo run
The server communicates over stdio using the Model Context Protocol.
By default, evaluate returns the Rust Display representation of the result.
Set OUTPUT_FORMAT=JSON to get serialized JSON instead
npx @modelcontextprotocol/inspector cargo run
1 + 2
max(10, 20) + 1
'hello' + ' ' + 'world'
len('test') > 2 ? 'long' : 'short'
cargo build
cargo run
Requires Rust 1.85+ (edition 2024).
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-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y slac-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-dennisprediger-slac-mcp": {
"command": "npx",
"args": [
"-y",
"slac-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceslac-mcpnpmio.github.DennisPrediger/slac-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.