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

mcp_wolfram_alpha-0.2.1.tar.gz (15.9 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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_wolfram_alpha-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b9db3a6367f7987230565515036dd72dc85a8cb574089b8b6e6e7903aa265d45
MD5 ff8979897d53cc56a784db504180a593
BLAKE2b-256 901cbdc37977cb207de22d95e4db92186c9c7b17a255f6f37dfcb4df7234719b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_wolfram_alpha-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bce41d44b888a2566c07c33f26497403da4976adb35838f3c84dde4bad06fa57
MD5 5530f4e78bf536f33a628fe65be6ae21
BLAKE2b-256 de0a9dcfd06848c7aa42d16bfbb9530a2a06a0c6256db7f112ae8b284c3b79ff

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