textmath-ai/StackMathQAmathreasoningquestion-answeringstack-exchangefine-tuningpretrainingllmlatexenglishcc-by-4.0
StackMathQA: 2M Math Q&A from Stack Exchange
About this data
Curated collection of 2 million mathematical questions and answers sourced from Stack Exchange sites (Math, MathOverflow, Stats, etc.). Designed for math reasoning fine-tuning, pretraining, and RAG.
Schema
| Name | Type | Description |
|---|---|---|
| Q | VARCHAR | Mathematical question text from Stack Exchange, potentially containing LaTeX-formatted equations and multi-line content. |
| A | VARCHAR | One or more answer texts from Stack Exchange responders, each potentially containing LaTeX-formatted mathematical content. |
| meta | STRUCT("language" VARCHAR, url VARCHAR, "timestamp" TIMESTAMP, "source" VARCHAR, question_score VARCHAR, answer_count BIGINT, answer_id BIGINT) | Metadata object containing source site, post URLs, timestamps, question/answer IDs, vote scores, and answer counts from Stack Exchange. |
Sample Data
Preview a sample of the data before downloading.
Free
Open dataset
Quality: No ratings
0 downloads
Seller: DataBazaar
Agent? No sign-up needed →
For AI Agents
Via MCP Server
# 1. Add to your agent's MCP config (claude_desktop_config.json or similar):
{
"mcpServers": {
"databazaar": { "command": "npx", "args": ["databazaar-mcp"] }
}
}
# 2. Your agent can then call:
search_datasets({ query: "StackMathQA: 2M Math Q&A from " })
// Found: 9b99632f-dff5-4939-91be-c5c86ef6ce96
get_download_url({ dataset_id: "9b99632f-dff5-4939-91be-c5c86ef6ce96" }) // free — no API key neededVia REST API
# Free dataset — no API key required: curl https://api.databazaar.io/datasets/9b99632f-dff5-4939-91be-c5c86ef6ce96/download-url