Labsco
Garoth logo

WolframAlpha LLM

โ˜… 54

from Garoth

Answer math and other queries using the WolframAlpha LLM API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

WolframAlpha LLM MCP Server

<img src="assets/wolfram-llm-logo.png" width="256" alt="WolframAlpha LLM MCP Logo" />

A Model Context Protocol (MCP) server that provides access to WolframAlpha's LLM API. https://products.wolframalpha.com/llm-api/documentation

<div> <img src="assets/readme-screen-1.png" width="609" alt="WolframAlpha MCP Server Example 1" /><br/><br/> <img src="assets/readme-screen-2.png" width="609" alt="WolframAlpha MCP Server Example 2" /> </div>

Features

  • Query WolframAlpha's LLM API with natural language questions
  • Answer complicated mathematical questions
  • Query facts about science, physics, history, geography, and more
  • Get structured responses optimized for LLM consumption
  • Support for simplified answers and detailed responses with sections

Available Tools

  • ask_llm: Ask WolframAlpha a question and get a structured llm-friendly response
  • get_simple_answer: Get a simplified answer
  • validate_key: Validate the WolframAlpha API key

Development

Setting Up Tests

The tests use real API calls to ensure accurate responses. To run the tests:

  1. Copy the example environment file:

    cp .env.example .env
  2. Edit .env and add your WolframAlpha API key:

    WOLFRAM_LLM_APP_ID=your-api-key-here

    Note: The .env file is gitignored to prevent committing sensitive information.

  3. Run the tests:

    npm test

Building

npm run build

License

MIT