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.0.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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wolfram_alpha_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93f775ab844c88d40077dad36080ca9577005ff95f5494a59d36324ad09410a9
MD5 349d2a410b5dc7ab379ff89fab50b47e
BLAKE2b-256 c1d5bfbc9e28f39f458be488a0bfec1c4e465fc5e2a067a06f7d6939592a0633

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wolfram_alpha_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74ce624792a3dc2740421b556ae225f6fcf7e132326bf340299eb24dccb74474
MD5 8971ec45d3471628d129d96c9e855e7c
BLAKE2b-256 04482f7f495746a920651b28e529b5485d2593bb166a1c87792b0d00054cb18c

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