Query the Wolfram Alpha API with a question or computation and return the results
This MCP server provides a direct connection to the Wolfram Alpha API, allowing your AI assistant to leverage Wolfram's powerful computational knowledge engine. It enables your assistant to perform complex calculations, solve mathematical problems, access scientific data, and answer factual queries with precision by tapping into Wolfram Alpha's vast knowledge base. Similar to the "!wa" bang command in DuckDuckGo search, this integration enhances your assistant's capabilities with accurate, computation-based responses for technical, scientific, and mathematical questions.
The Wolfram Alpha MCP server connects your AI assistant to Wolfram Alpha's computational intelligence engine, providing access to a vast knowledge base for mathematical, scientific, and factual queries.
Before using this MCP server, you need to:
pip install mcp-wolfram-alpha
git clone https://github.com/SecretiveShell/MCP-wolfram-alpha.git
cd MCP-wolfram-alpha
pip install -e .
docker pull ghcr.io/secretiveshell/mcp-wolfram-alpha:latest
docker run -e WOLFRAM_API_KEY=your-api-key -p 8000:8000 ghcr.io/secretiveshell/mcp-wolfram-alpha:latest
You must set the WOLFRAM_API_KEY
environment variable with your Wolfram Alpha API key. This MCP was tested with the full results API, but a simpler API might also work.
Add the following configuration to your MCP client (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"MCP-wolfram-alpha": {
"command": "uv",
"args": [
"--directory",
"PATH_TO_YOUR_PROJECT_DIRECTORY",
"run",
"MCP-wolfram-alpha"
],
"env": {
"WOLFRAM_API_KEY": "your-app-id"
}
}
}
}
Replace PATH_TO_YOUR_PROJECT_DIRECTORY
with the full path to where you installed the MCP server, and your-app-id
with your actual Wolfram Alpha API key.
Once configured, your AI assistant can use Wolfram Alpha to answer computational questions. You can prompt your assistant with queries like:
The assistant will use the Wolfram Alpha API to provide accurate, computation-based answers.
For debugging purposes, you can use mcp-cli-inspector:
npx @wong2/mcp-cli -c ./config.json
This allows you to test the MCP server directly without going through an AI assistant.