MCP Expr-Lang logo

MCP Expr-Lang

by ivan-saorin

MCP Expr-Lang is a powerful expression evaluation tool for Claude Desktop using the Model Context Protocol (MCP). It allows you to perform complex data manipulations and calculations directly within your Claude conversations.

View on GitHub

Last updated: N/A

What is MCP Expr-Lang?

MCP Expr-Lang is a tool that integrates the expr-lang expression evaluation engine with Claude AI, enabling users to perform complex data manipulations, calculations, and transformations within Claude conversations.

How to use MCP Expr-Lang?

After installing MCP Expr-Lang by cloning the repository, installing dependencies, building the application, and configuring Claude Desktop with the correct path to the executable, you can use the eval tool in your conversations by asking Claude to evaluate expressions. For example: 'Use eval to calculate "10 + 5 * 3"'.

Key features of MCP Expr-Lang

  • Evaluate mathematical expressions

  • Transform and filter arrays and objects

  • Sort complex data structures

  • Perform string manipulations

  • Use conditional logic

  • Supports all features of the expr-lang engine

Use cases of MCP Expr-Lang

  • Performing calculations within Claude conversations

  • Transforming and filtering data based on user input

  • Automating data processing tasks

  • Integrating external data sources with Claude

  • Implementing complex logic within AI interactions

FAQ from MCP Expr-Lang

Tool not appearing in Claude?

Make sure the path in your config.json is correct and Claude Desktop has been restarted.

Execution errors?

Check that the expression syntax is correct according to the expr-lang documentation.

Permission issues (macOS/Linux)?

Ensure the server binary has execution permissions (chmod +x bin/server).

Where can I find more examples?

See the EXAMPLES.md file in the repository.

How can I contribute?

Fork the repository, create a feature branch, commit your changes, push to the branch, and open a Pull Request.