Skip to main content

A MCP server to connect to wolfram alpha API.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wolfram_alpha_mcp_server-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wolfram_alpha_mcp_server-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file wolfram_alpha_mcp_server-0.1.1.tar.gz.

File metadata

File hashes

Hashes for wolfram_alpha_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a814d0ddd6837f7944c72c14ea90714ab7066458e60e161e7b84c01d30bcd6a9
MD5 9548fcd7011b26543afd233e424abfb6
BLAKE2b-256 17dcd1691d54accde86900e0184f7f6f1be8be10a4caa35938b50bb5f5cec5be

See more details on using hashes here.

File details

Details for the file wolfram_alpha_mcp_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wolfram_alpha_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e07c170aa5748e5029f720f566092368688700a65db81f75e6582f199b2dddda
MD5 3e40b0e1cd609881a81dcc5e3feaf0ee
BLAKE2b-256 87c011bc0f99beee7540b86ac30f0e0716313c7ec887d34845628c0eca5caacf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page