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.