
akalaric/mcp-wolframalpha
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
akalaric/mcp-wolframalpha は [https://github.com/akalaric/mcp-wolframalpha.] からインポートされた MCP サーバーの候補です
概要
akalaric/mcp-wolframalpha は [https://github.com/akalaric/mcp-wolframalpha.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Wolfram Alphaをチャットアプリケーションにシームレスに統合
このプロジェクトでは、Wolfram Alpha API とインターフェイスする MCP (Model Context Protocol) サーバを実装しています。 チャットベースのアプリケーションは、計算されたクエリを実行し、構造化された知識を取得したり、高度な会話能力を促進したりすることができます。
Wolfram Alphaのナレッジエンジンとリアルタイムのやりとりのために、大規模な言語モデルをMCPサーバーに接続する方法を説明する、LangChainを介してGeminiを活用したMCP-Clientの例が含まれています。
お問い合わせ
##特徴
-
Wolfram|数学、科学、データクエリのアルファ統合
-
モジュラーアーキテクチャ 追加の API や機能をサポートするために拡張可能。
-マルチクライアントサポート 複数のクライアントやインターフェイスからのやり取りをシームレスに処理します。
- MCP-Client例 Gemini (LangChain 経由) を使用します。 -UIサポート Google AIとWolfram Alpha MCPサーバーとのやりとりを行うユーザーフレンドリーなWebインターフェイス用のGradioを使用しています。
お問い合わせ
インストール
##レポのクローン
環境変数の設定
例に基づいて.envファイルを作成します。
- WOLFRAM API KEY=your wolframalpha appid
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
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-wolframalpha
Set 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.txt
Install the required dependencies with uv:
Ensure uv is installed.
uv sync
Configuration
To use with the VSCode MCP Server:
- Create a configuration file at
.vscode/mcp.jsonin your project root. - Use the example provided in
configs/vscode_mcp.jsonas a template. - 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 --ui
Docker
To build and run the client inside a Docker container:
docker build -t wolframalphaui -f .devops/ui.Dockerfile .
docker run wolframalphaui
UI
- 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
インストール
docker run wolframalphaui設定
{
"mcpServers": {
"WolframAlphaServer": {
"command": "python3",
"args": [
"/path/to/src/core/server.py"
]
}
}
}