Purpose
mcp-wolframalpha aims to seamlessly integrate Wolfram Alpha into chat applications. It implements an MCP (Model Context Protocol) server for interfacing with the Wolfram Alpha API, enabling chat applications to perform computational queries and obtain structured knowledge, thereby supporting more advanced conversational capabilities.
Main Capabilities
- Wolfram Alpha Integration: Supports math, science, and data queries.
- Modular Architecture: Easy to extend to support additional APIs and features.
- Multi-Client Support: Seamlessly handles interactions from multiple clients or interfaces.
- MCP Client Example: Includes a client example using Gemini (via LangChain).
- UI Support: Uses Gradio to provide a user-friendly web interface for interacting with Google AI and the Wolfram Alpha MCP server.
Usage
Environment Variable Setup
Create the following based on the example .env file:
WOLFRAM_API_KEY=your_wolframalpha_appid
GeminiAPI=your_google_gemini_api_key (Optional if using Client method below.)
Install Dependencies
Use uv to install the required dependencies: ensure uv is installed.
Using with VSCode MCP Server
Create a configuration file in the project root directory .vscode/mcp.json. Use the example provided in configs/vscode_mcp.json as a template. For more details, refer to the VSCode MCP Server Guide.
Using with Claude Desktop
(Specific steps are not provided in the source material)
Client Usage Example
The project includes an LLM client that communicates with the MCP server.
- Required: GeminiAPI
- Provides a local web interface for interacting with Google AI and Wolfram Alpha.
Run the client directly from the command line: (Specific commands are not provided in the source material)
Build and run the client in a Docker container: (Specific commands are not provided in the source material)
Applicable Scenarios
- Scenarios that require performing math, science, or data queries in chat applications.
- Developers who want to connect large language models with the Wolfram Alpha knowledge engine for real-time interaction.
- Projects that require multi-client support or extensible API integration.
Limitations
The source material does not provide complete information regarding fees, pricing, platform compatibility, performance, or specific usage steps. Some configuration and run commands are not explicitly given in the source material; refer to the example files in the project repository.