WolframAlpha MCP Server
npm install wolfram-mcpA Model Context Protocol (MCP) server that connects to the Wolfram Alpha API, providing powerful computational, mathematical, and scientific capabilities to LLMs.
- Natural Language Queries: Ask questions in plain English about math, science, history, and more.
- Multiple Modes:
- llm: Optimized text responses for AI consumption (default).
- full: Detailed structured data including images, plots, and step-by-step solutions.
- short: Concise, single-value answers.
- simple: Generated images of the result.
- Rich Resources: Includes curated examples for Mathematics, Science, and Finance.
- Robust Validation: Ensures queries are properly formatted and parameters are valid.
You can run the server directly without installation using npx:
``bash`
npx wolfram-mcp
`bash`
npm install -g wolfram-mcp
The server requires a Wolfram Alpha App ID. You can get one by signing up at the Wolfram Alpha Developer Portal.
Set the WOLFRAM_APP_ID environment variable:
`bash`
export WOLFRAM_APP_ID=your_app_id_here
Add the following to your claude_desktop_config.json:
`json`
{
"mcpServers": {
"wolfram": {
"command": "npx",
"args": ["-y", "wolfram-mcp"],
"env": {
"WOLFRAM_APP_ID": "your_app_id_here"
}
}
}
}
Query Wolfram Alpha for information.
Arguments:
- query (string, required): The natural language query (e.g., "integrate sin x", "population of France").mode
- (string, optional): The API mode to use.llm
- (default): Best for general text answers.full
- : Best for complex math, plots, and detailed data.short
- : Best for quick facts.simple
- : Returns an image.maxchars
- (number, optional): Maximum characters in response (only for llm mode).assumption` (string, optional): Clarify intent if Wolfram finds ambiguity.
-
ISC