MCP Expr Lang
MCP Expr-Lang
使用模型上下文协议 (MCP) 的 Claude Desktop 的强大表达式评估工具。
概述
MCP Expr-Lang 实现了 Claude AI 与强大的expr-lang表达式求值引擎的无缝集成。此工具允许您直接在 Claude 对话中执行复杂的数据操作、计算和转换。
使用 MCP Expr-Lang,您可以:
计算数学表达式
转换和过滤数组和对象
对复杂数据结构进行排序
执行字符串操作
使用条件逻辑
还有更多!
Related MCP server: espresso-mcp
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MCP Expr-Lang:
npx -y @smithery/cli install @ivan-saorin/mcp-expr-lang --client claude先决条件
Go 1.18 或更高版本
Claude桌面应用程序
Git
步骤 1:克隆存储库
git clone https://github.com/ivan-saorin/mcp-expr-lang.git
cd mcp-expr-lang第 2 步:安装依赖项
go mod download步骤 3:构建应用程序
对于 Windows
go build -o bin/server.exe对于 macOS/Linux
go build -o bin/server
chmod +x bin/server步骤4:配置Claude桌面
打开 Claude 桌面
前往“设置”
导航至“高级”部分
将以下配置添加到您的
config.json:
对于 Windows
{
"mcpServers": {
"eval": {
"command": "C:\\path\\to\\mcp-expr-lang\\bin\\server.exe"
}
}
}对于 macOS/Linux
{
"mcpServers": {
"eval": {
"command": "/path/to/mcp-expr-lang/bin/server"
}
}
}保存配置并重新启动Claude Desktop
用法
安装完成后,您可以直接在与 Claude 的对话中使用eval工具。只需让 Claude 使用该工具计算表达式的值即可。
基本示例
User: Use eval to calculate "10 + 5 * 3"
Claude: [Uses eval tool]
Result: 10 + 5 * 3 = 25复杂示例
User: We have users = [{"Name": "John", "Age": 30},{"Name": "Ivan", "Age": 51},{"Name": "Eve", "Age": 15}]
Use eval to calculate "sortBy(users, .Age, "desc")"
Claude: [Uses eval tool]
Result: The expression returns the users sorted by age in descending order:
[
{"Age": 51, "Name": "Ivan"},
{"Age": 30, "Name": "John"},
{"Age": 15, "Name": "Eve"}
]更多示例请参见示例
特征
MCP Expr-Lang 支持 expr-lang 引擎的所有功能,包括:
算术运算:加法、减法、乘法、除法、模数、指数运算
字符串操作:连接、长度、大小写转换
布尔运算:AND、OR、NOT、比较运算符
数组操作:映射、过滤、缩减、排序
对象操作:属性访问、转换
条件逻辑:三元运算符、if-else 表达式
内置函数:数学、字符串、数组和日期函数
有关表达式语言语法和功能的完整指南,请参阅expr-lang 文档。
故障排除
常见问题
工具未出现在 Claude 中:请确保
config.json中的路径正确并且 Claude Desktop 已重新启动。执行错误:根据 expr-lang 文档检查表达式语法是否正确。
权限问题(macOS/Linux) :确保服务器二进制文件具有执行权限(
chmod +x bin/server)。
获取帮助
如果您遇到任何问题或有疑问:
查看 GitHub 上的问题部分
如果您的问题尚未被报告,请提出一个新问题
贡献
欢迎贡献!如果您想改进 MCP Expr-Lang:
分叉存储库
创建功能分支(
git checkout -b feature/amazing-feature)提交您的更改(
git commit -m 'Add some amazing feature')推送到分支(
git push origin feature/amazing-feature)打开拉取请求
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
致谢
expr-lang强大的表达式求值引擎
mcp-golang用于模型上下文协议实现
Claude AI,人工智能助手平台
由Ivan Saorin用❤️制作
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP Server for the Espresso Android Test Framework, crafted to improve testing capabilities and optimize development workflows.22MIT

Reexpress MCP Serverofficial
AlicenseNot gradedqualityAmaintenanceReexpress Model-Context-Protocol (MCP) Server8Apache 2.0
Related MCP Connectors
MCP server for Blockscout
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for fcc-ecfs
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivan-saorin/mcp-expr-lang'
If you have feedback or need assistance with the MCP directory API, please join our Discord server