mcp-wolframalpha
A Python-powered Model Context Protocol MCP server and client that uses Wolfram Alpha via API.
Documentation
MCP Wolfram Alpha (Server + Client)
Seamlessly integrate Wolfram Alpha into your chat applications.
This project implements an MCP (Model Context Protocol) server designed to interface with the Wolfram Alpha API. It enables chat-based applications to perform computational queries and retrieve structured knowledge, facilitating advanced conversational capabilities.
Included is an MCP-Client example utilizing Gemini via LangChain, demonstrating how to connect large language models to the MCP server for real-time interactions with Wolfram Alpha’s knowledge engine.
Features
- Wolfram|Alpha Integration for math, science, and data queries.
- Modular Architecture Easily extendable to support additional APIs and functionalities.
- Multi-Client Support Seamlessly handle interactions from multiple clients or interfaces.
- MCP-Client example using Gemini (via LangChain).
- UI Support using Gradio for a user-friendly web interface to interact with Google AI and Wolfram Alpha MCP server.
Installation
Clone the Repo
git clone https://github.com/ricocf/mcp-wolframalpha.git
cd mcp-wolframalphaSet Up Environment Variables
Create a .env file based on the example:
- WOLFRAM_API_KEY=your_wolframalpha_appid
- GeminiAPI=your_google_gemini_api_key *(Optional if using Client method below.)*
Install Requirements
pip install -r requirements.txtInstall the required dependencies with uv:
Ensure `uv` is installed.
uv syncConfiguration
To use with the VSCode MCP Server:
1. Create a configuration file at `.vscode/mcp.json` in your project root.
2. Use the example provided in `configs/vscode_mcp.json` as a template.
3. For more details, refer to the VSCode MCP Server Guide.
To use with Claude Desktop:
{
"mcpServers": {
"WolframAlphaServer": {
"command": "python3",
"args": [
"/path/to/src/core/server.py"
]
}
}
}Client Usage Example
This project includes an LLM client that communicates with the MCP server.
Run with Gradio UI
- Required: GeminiAPI
- Provides a local web interface to interact with Google AI and Wolfram Alpha.
- To run the client directly from the command line:
python main.py --uiDocker
To build and run the client inside a Docker container:
docker build -t wolframalphaui -f .devops/ui.Dockerfile .
docker run wolframalphauiUI
- Intuitive interface built with Gradio to interact with both Google AI (Gemini) and the Wolfram Alpha MCP server.
- Allows users to switch between Wolfram Alpha, Google AI (Gemini), and query history.

Run as CLI Tool
- Required: GeminiAPI
- To run the client directly from the command line:
python main.pyDocker
To build and run the client inside a Docker container:
docker build -t wolframalpha -f .devops/llm.Dockerfile .
docker run -it wolframalphaContact
Feel free to give feedback. The e-mail address is shown if you execute this in a shell:
printf "\x61\x6b\x61\x6c\x61\x72\x69\x63\x31\x40\x6f\x75\x74\x6c\x6f\x6f\x6b\x2e\x63\x6f\x6d\x0a"Frequently asked questions
What is mcp-wolframalpha?
mcp-wolframalpha is A Python-powered Model Context Protocol MCP server and client that uses Wolfram Alpha via API.
How do I install mcp-wolframalpha?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-wolframalpha open source?
Yes — it is hosted on GitHub at https://github.com/ricocf/mcp-wolframalpha and has 49 stars.
Related MCP tools
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
A simple, secure MCP-to-OpenAPI proxy server Python-based implementation. Trusted by 3500+ developers. Trusted by 3500+ developers.
MCP server that interacts with Obsidian via the Obsidian rest API community plugin Python-based implementation. Trusted by 2300+ developers.
Default Configuration: MCP CLI defaults to using Ollama with the gpt-oss reasoning model for local, privacy-focused operation without requiring API keys.
Official MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP server for long term agent memory with Mem0. Also useful as a template to get you started building your own MCP server with Python!
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP