Skip to main content

A MCP server to connect to wolfram alpha API.

Project description

MCP-wolfram-alpha MCP server

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

mcp_wolfram_alpha-0.2.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

mcp_wolfram_alpha-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_wolfram_alpha-0.2.0.tar.gz.

File metadata

  • Download URL: mcp_wolfram_alpha-0.2.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.5

File hashes

Hashes for mcp_wolfram_alpha-0.2.0.tar.gz
Algorithm Hash digest
SHA256 be11e7da826599c8b2d9d8735934603c04b8401a96f6057a2329e33ca3dbf6a0
MD5 69e55989e67d11995d6b213fd45245e8
BLAKE2b-256 876592865898360eda8f707ea110951abf1012035854f12393b000d594f7b5d6

See more details on using hashes here.

File details

Details for the file mcp_wolfram_alpha-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_wolfram_alpha-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f84d68feb2a73953ec4b1d4ca77de206ed5a9f711a48258b5f3c260c335597c0
MD5 fc6d0cc51232d53e76880a4dc9c23315
BLAKE2b-256 f2d1ec8e3f1bef5fa01472bde8260ce7c6a04961c61b29fccc13bea491980a72

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