Skip to main content
Glama
Garoth

WolframAlpha LLM MCP Server

by Garoth

WolframAlpha LLM MCP Server

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

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

Related MCP server: Wolfram Alpha MCP Server

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

Installation

git clone https://github.com/Garoth/wolframalpha-llm-mcp.git
npm install

Configuration

  1. Get your WolframAlpha API key from developer.wolframalpha.com

  2. Add it to your Cline MCP settings file inside VSCode's settings (ex. ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):

{
  "mcpServers": {
    "wolframalpha": {
      "command": "node",
      "args": ["/path/to/wolframalpha-mcp-server/build/index.js"],
      "env": {
        "WOLFRAM_LLM_APP_ID": "your-api-key-here"
      },
      "disabled": false,
      "autoApprove": [
        "ask_llm",
        "get_simple_answer",
        "validate_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

Available Tools

3 tools
ask_llmC

Ask WolframAlpha a query and get LLM-optimized structured response with multiple formats

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesThe query to ask WolframAlpha

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'LLM-optimized structured response with multiple formats,' which hints at output behavior, but fails to cover critical aspects like rate limits, authentication needs, error handling, or whether it's read-only or destructive. For a tool with no annotations, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads key information: the action, target, and outcome. There is no wasted text, and it directly communicates the tool's core functionality without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of querying an external service (WolframAlpha) and the lack of annotations and output schema, the description is incomplete. It doesn't explain the response formats, error cases, or operational constraints, leaving significant gaps for an AI agent to understand tool behavior fully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'query' parameter clearly documented. The description adds no additional parameter semantics beyond what the schema provides, such as query format examples or constraints. With high schema coverage, the baseline is 3, as the description doesn't compensate but doesn't need to.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Ask WolframAlpha a query and get LLM-optimized structured response with multiple formats.' It specifies the action (ask), target (WolframAlpha), and outcome (structured response with multiple formats). However, it doesn't explicitly distinguish this from sibling tools like 'get_simple_answer' or 'validate_key', which would require a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'get_simple_answer' or 'validate_key', nor does it specify contexts, prerequisites, or exclusions for usage. This lack of comparative guidance limits its effectiveness for an AI agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_simple_answerB

Get a simplified, LLM-friendly answer focusing on the most relevant information

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesThe query to ask WolframAlpha

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the output is 'simplified' and 'LLM-friendly,' but doesn't cover critical aspects like rate limits, authentication needs, error handling, or what 'simplified' entails (e.g., formatting, length). This leaves significant gaps for an AI agent to understand the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that clearly states the tool's purpose without unnecessary words. It is front-loaded with the core function ('Get a simplified, LLM-friendly answer'), making it easy to parse. Every part of the sentence contributes to understanding the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (1 parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on behavior, usage guidelines, and output specifics. Without annotations or an output schema, more context on what the answer includes would improve completeness, but it meets a bare minimum.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'query' parameter documented as 'The query to ask WolframAlpha.' The description adds no additional meaning beyond this, such as query format examples or constraints. Since schema coverage is high, the baseline score of 3 is appropriate, as the description doesn't compensate but doesn't need to heavily.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Get a simplified, LLM-friendly answer focusing on the most relevant information.' It specifies the action ('Get'), the output type ('simplified, LLM-friendly answer'), and the focus ('most relevant information'). However, it doesn't explicitly differentiate from sibling tools like 'ask_llm' or 'validate_key', which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'ask_llm' or 'validate_key', nor does it specify contexts or exclusions for usage. The phrase 'LLM-friendly answer' implies a target audience but lacks explicit usage rules.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

validate_keyB

Validate the WolframAlpha LLM API key

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('validate') but doesn't explain what validation entails, such as checking key format, connectivity, permissions, or returning success/failure status. This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without any unnecessary words. It is appropriately sized and front-loaded, making it easy to understand at a glance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what validation means, what the output might be (e.g., success/failure, error messages), or how it integrates with sibling tools. For a validation tool with no structured context, more detail is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description doesn't add parameter details, which is appropriate, earning a baseline score of 4 for tools with no parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('validate') and the target resource ('WolframAlpha LLM API key'), making the purpose unambiguous. However, it doesn't differentiate from sibling tools like 'ask_llm' or 'get_simple_answer', which prevents a score of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus the sibling tools. The description lacks context about prerequisites, such as whether validation is needed before using other tools, or any explicit when/when-not scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv1.0.0
    • First observedask_llm
    • First observedget_simple_answer
    • First observedvalidate_key

TDQS

C2.9/5.0
Disambiguation2/5

The tools 'ask_llm' and 'get_simple_answer' have overlapping purposes—both process WolframAlpha queries to return answers, with only subtle differences in output format. An agent could easily confuse them, as the descriptions don't clearly delineate distinct use cases, leading to potential misselection.

Naming Consistency4/5

The naming follows a consistent snake_case pattern across all tools, with clear verb_noun structures (e.g., ask_llm, get_simple_answer). However, 'validate_key' deviates slightly by not directly involving query processing, though it maintains the same stylistic convention.

Tool Count3/5

With only 3 tools, the count feels thin for a server named 'WolframAlpha LLM MCP Server', which suggests broader functionality. While the tools cover core querying and key validation, the limited number may restrict agent capabilities in handling diverse WolframAlpha tasks.

Completeness2/5

The tool surface is significantly incomplete for interacting with WolframAlpha's capabilities. It lacks operations for different query types (e.g., computational, visual, step-by-step), error handling, or advanced features, leaving obvious gaps that could cause agent failures in complex scenarios.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables users to query Wolfram Alpha's computational knowledge engine through natural language. Provides access to mathematical computations, scientific data, and factual information via the Wolfram Alpha API.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables scientific computing, mathematical problem solving, and step-by-step mathematical solutions through Wolfram Alpha's mobile API. Supports real-time streaming responses and multiple output formats for enhanced mathematical and scientific queries.
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Provides access to Wolfram Alpha's computational knowledge engine for mathematical calculations, scientific computing, data analysis, and factual information through natural language queries.
    2
    6
    -

Latest Blog Posts

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/Garoth/wolframalpha-llm-mcp'

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