SuperAPIAI Directory

mcp-expr-lang

github.com · AI developer platforms

mcp-expr-lang is a Model Context Protocol (MCP)-based server that wraps the expr-lang expression evaluation engine, used to perform expression calculations and data transformations in Claude Desktop conversations. It supports mathematical operations, string processing, array and object operations, sorting, conditional logic, and built-in functions. It requires Go 1.18+ and the Claude Desktop environment, can be installed via Smithery or by manually cloning and building the configuration, and is licensed under the MIT License.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose: mcp-expr-lang is an MCP server built around the expr-lang.org expression evaluation engine. Its goal is to connect expr-lang's expression evaluation capabilities to Claude AI (Claude Desktop), so that users can directly perform complex data processing, calculations, and transformations in conversations.

Main capabilities: The materials state that this tool supports all features of the expr-lang engine, including arithmetic operations (addition, subtraction, multiplication, division, modulo, exponentiation), string operations (concatenation, length, case conversion), boolean operations (AND, OR, NOT, and comparison operators), array operations (map, filter, reduce, sort), object operations (property access, conversion), conditional logic (ternary operator, if-else expressions), and built-in functions for math, strings, arrays, dates, and more. After installation, the eval tool can be used directly in conversations with Claude, allowing Claude to call this tool to evaluate expressions.

Usage: Prerequisites are Go 1.18 or later and the Claude Desktop application. It can be installed automatically for Claude Desktop via Smithery, or manually: clone the repository, install dependencies, build the application, then add the configuration to config.json in the "Advanced" section of Claude Desktop, save, and restart Claude Desktop. After configuration is complete, ask Claude in the conversation to use this tool to evaluate expressions. The repository provides complex examples, with more examples in the EXAMPLES document; for the complete expression syntax and capabilities, see the expr-lang documentation.

Use cases: Suitable for users who need to complete tasks such as mathematical calculations, array and object data transformation and filtering, sorting of complex structures, string processing, and conditional judgment within Claude conversations.

Limitations and notes: The materials do not provide specific pricing, cost, or platform scope information. During use, if the tool does not appear in Claude, check whether the config.json path is correct and restart Claude Desktop; if execution errors occur, verify the expression syntax against the expr-lang documentation; on macOS/Linux, if permission issues occur, ensure the server binary has execute permission (chmod +x bin/server). The project is licensed under the MIT License, and issues can be reported on GitHub Issues, and contributions are also welcome by forking, creating a feature branch, committing changes, pushing, and then opening a Pull Request.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools