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.1.0.tar.gz (14.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.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_wolfram_alpha-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88de872b13b087d7c4dc123aea0e9a9ee36db97122bcf2c57e5e94ff4796b601
MD5 5dabb3af28efd9084a9aafba006f3252
BLAKE2b-256 fefa91d3fdfdc4c4e9e461f151d4dd1283bfc8f4470963e866af35bf0cfb6e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_wolfram_alpha-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a819612615bda49c2d1e4418214254a2a1914102849c923016fbd47d6ffacd6
MD5 23c3283d0d8eae465e23f8e9be119c96
BLAKE2b-256 686558a8a6e032e7716c6886a79d5b484b06a0bc18df75a385cc1dfa71bd306b

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