MCP_WolframAlpha

MIT License
9
  • Linux
  • Apple
Integrations
  • Supports integration with Google's Gemini model via LangChain to create an example client that interacts with the MCP server for real-time Wolfram Alpha queries

  • Utilizes LangChain to connect large language models (specifically Gemini) to the Wolfram Alpha API, facilitating the creation of AI clients that can interact with the MCP server

  • Allows chat applications to perform computational queries and retrieve structured knowledge through the Wolfram Alpha API, enabling advanced mathematical, scientific, and data analysis capabilities

MCP Wolfram Alpha(客户端+服务器)

将 Wolfram Alpha 无缝集成到您的聊天应用程序中。

该项目实现了一个 MCP(模型上下文协议)服务器,旨在与 Wolfram Alpha API 交互。它使基于聊天的应用程序能够执行计算查询并检索结构化知识,从而实现高级对话功能。

其中包括一个通过 LangChain 利用 Gemini 的 MCP-Client 示例,演示如何将大型语言模型连接到 MCP 服务器,以便与 Wolfram Alpha 的知识引擎进行实时交互。


特征

  • Wolfram|Alpha 集成用于数学、科学和数据查询。
  • 模块化架构可轻松扩展以支持额外的 API 和功能。
  • 多客户端支持无缝处理来自多个客户端或界面的交互。
  • 使用 Gemini 的MCP-Client 示例(通过 LangChain)。

安装

克隆 Repo

git clone https://github.com/ricocf/mcp-wolframalpha.git cd mcp-wolframalpha

设置环境变量

根据示例创建一个 .env 文件:

  • WOLFRAM_API_KEY=你的_wolframalpha_appid
  • GeminiAPI=your_google_gemini_api_key (如果使用下面的客户端方法,则为可选。)

安装要求

pip install -r requirements.txt

配置

要与 VSCode MCP 服务器一起使用:

  1. 在项目根目录中创建一个配置文件.vscode/mcp.json
  2. 使用configs/vscode_mcp.json中提供的示例作为模板。
  3. 更多详细信息,请参阅VSCode MCP 服务器指南

与 Claude Desktop 一起使用:

{ "mcpServers": { "WolframAlphaServer": { "command": "python3", "args": [ "/path/to/src/core/server.py" ] } } }

客户端使用示例

该项目包括一个与 MCP 服务器通信的 LLM 客户端。

作为 CLI 工具运行
  • 必需:GeminiAPI
  • 要从命令行直接运行客户端:
python main.py
Docker

要在 Docker 容器内构建并运行客户端:

docker build -t wolframalpha -f .devops/llm.Dockerfile . docker run -it wolframalpha
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP_WolframAlpha

  1. 特征
    1. 安装
      1. 克隆 Repo
      2. 设置环境变量
      3. 安装要求
      4. 配置
    2. 客户端使用示例
      1. 作为 CLI 工具运行
      2. Docker

    Related MCP Servers

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ricocf/mcp-wolframalpha'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server