wolframalpha-llm-mcp
by: Garoth
An MCP Server for WolframAlpha's LLM API, able to return structured knowledge & solve math
📌Overview
Purpose: This framework serves as a Model Context Protocol (MCP) server providing access to WolframAlpha's LLM API, enabling users to interact with advanced queries.
Overview: The WolframAlpha LLM MCP Server facilitates natural language queries to access WolframAlpha's rich database and capabilities. It is designed to return structured, LLM-friendly responses covering a vast array of topics, making it an efficient tool for handling complex questions.
Key Features:
-
Natural Language Querying: Users can pose questions in plain language, receiving intelligent responses tailored for LLM consumption.
-
Complex Problem Solving: It effectively addresses complicated mathematical inquiries and provides factual information across various domains such as science, physics, history, and geography.
WolframAlpha LLM MCP Server
A Model Context Protocol (MCP) server that provides access to WolframAlpha's LLM API. WolframAlpha 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
Available Tools
ask_llm
: Ask WolframAlpha a question and get a structured LLM-friendly responseget_simple_answer
: Get a simplified answervalidate_key
: Validate the WolframAlpha API key
Installation
git clone https://github.com/Garoth/wolframalpha-llm-mcp.git
npm install
Configuration
- Get your WolframAlpha API key from developer.wolframalpha.com.
- Add it to your Cline MCP settings file inside VSCode's settings:
{
"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:
-
Copy the example environment file:
cp .env.example .env
-
Edit
.env
and add your WolframAlpha API key:WOLFRAM_LLM_APP_ID=your-api-key-here
-
Run the tests:
npm test
Building
npm run build
License
MIT