计算用户输入的数学表达式,支持基本运算以及 PI、E 等内置常量。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add cal -- npx -y @smithery/cli install @pwh-pwh/cal-mcp --client claude~/.codex/config.toml
[mcp_servers.cal]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@pwh-pwh/cal-mcp", "--client", "claude"]
# codex mcp add cal -- npx -y @smithery/cli install @pwh-pwh/cal-mcp --client claude~/.cursor/mcp.json
{
"mcpServers": {
"cal": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@pwh-pwh/cal-mcp",
"--client",
"claude"
]
}
}
}.vscode/mcp.json
{
"servers": {
"cal": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@pwh-pwh/cal-mcp",
"--client",
"claude"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cal": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@pwh-pwh/cal-mcp",
"--client",
"claude"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cal": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@pwh-pwh/cal-mcp",
"--client",
"claude"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"cal": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@pwh-pwh/cal-mcp",
"--client",
"claude"
]
}
}
}