SM

secretiveshell/mcp-wolfram-alpha

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

76 stars 20 forks 质量 62 趋势 0MIT

secretiveshell/mcp-wolfram-alpha 是从 https://github.com/secretiveshell/mcp-wolfram-alpha. 导入的一个 MCP 服务器候选

概览

secretiveshell/mcp-wolfram-alpha 是从 https://github.com/secretiveshell/mcp-wolfram-alpha. 导入的一个 MCP 服务器候选

概述(AI 翻译)

一个MCP服务器,用于连接Wolfram Alpha API。

组成部分

提示

这类似于duckduckgo搜索中的!wa砰。

工具

查询Wolfram Alpha api。

配置

你必须设置WOLFRAM_API_KEY环境变量。从Wolfram Alpha获取api ket。

这是用完整结果API测试过的,但可能不是必须的。

发展

调试

由于官方MCP检查器环境支持不好,我建议使用wong2的mcp-cli-inspector。

创建一个config.json文件,风格与 Claude Desktop 相同。

然后运行:

本页由 AI 翻译,技术细节请以原文为准。

README

MCP-wolfram-alpha

A MCP server to connect to wolfram alpha API.

Components

Prompts

This is analogous to the !wa bang in duckduckgo search.

def wa(query: str) -> f"Use wolfram alpha to answer the following question: {query}"

Tools

Query Wolfram Alpha api.

def query_wolfram_alpha(query: str) -> str

Configuration

You must set the WOLFRAM_API_KEY environment variable. Get an api ket from Wolfram Alpha.

This was tested with the full results API, but it might not be required.

{
    "mcpServers": {
        "MCP-wolfram-alpha": {
            "command": "uv",
            "args": [
                "--directory",
                "C:\\Users\\root\\Documents\\MCP-wolfram-alpha",
                "run",
                "MCP-wolfram-alpha"
            ],
            "env": {
                "WOLFRAM_API_KEY": "your-app-id"
            }
        }
    }
}

Development

Debugging

Since the official MCP inspector does not have good environment support, I reccommend using wong2’s mcp-cli-inspector.

Create a config.json file in the same style as claude desktop.

{
    "mcpServers": {
        "MCP-wolfram-alpha": {
            "command": "uv",
            "args": [
                "--directory",
                "/full/path/to/MCP-wolfram-alpha",
                "run",
                "MCP-wolfram-alpha"
            ],
            "env": {
                "WOLFRAM_API_KEY": "your-app-id"
            }
        }
    }
}

Then run:

npx @wong2/mcp-cli -c .\config.json
在 GitHub 查看完整 README

安装

npx @wong2/mcp-cli -c .\config.json
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "MCP-wolfram-alpha": { "command": "uv", "args": [ "--directory", "C:\\Users\\root\\Documents\\MCP-wolfram-alpha", "run", "MCP-wolfram-alpha" ], "env": { "WOLFRAM_API_KEY": "your-app-id" } } } }