Studyos Server
БесплатноНе проверенEnables Claude Web to import batches of educational problems into the StudyOS Problem Bank via the StudyOS Import API, with automatic retries and normalized res
Описание
Enables Claude Web to import batches of educational problems into the StudyOS Problem Bank via the StudyOS Import API, with automatic retries and normalized results for efficient problem generation workflows.
README
An independent MCP (Model Context Protocol) server that bridges Claude Web to the StudyOS Problem Import API. It forwards batches of newly generated educational problems to StudyOS and returns a clear, structured result so Claude can decide whether to keep generating more.
Claude Web ──▶ MCP (Streamable HTTP) ──▶ studyos-mcp-server ──▶ StudyOS Import API ──▶ StudyOS Problem Bank
This project is not StudyOS. It does not contain a database, curriculum taxonomy, duplicate detection, or validation logic. StudyOS owns all of that. The MCP server only authenticates, forwards, retries transiently, and normalizes the response.
What it does (and does not do)
| Responsibility | Owner |
|---|---|
| Generate problems | Claude Web |
| Basic input shape check + batching guidance | this MCP server |
| Server-to-server auth (Bearer) | this MCP server |
| Retry on transient failures + normalize result | this MCP server |
| Schema / taxonomy / problem validation | StudyOS |
| Duplicate fingerprinting + idempotency | StudyOS |
| Database insertion | StudyOS |
There is no database credential, Prisma, Supabase, or direct DB access in this project — by design.
The import_problems tool
Imports a batch of problems into the StudyOS Problem Bank.
Input
{
"batchId": "claude-web-20260810-0001", // optional; auto-generated if omitted
"source": "claude-web", // optional; defaults to "claude-web"
"targetNewProblems": 1000, // optional; total NEW problems the whole job wants
"problems": [ // required; 1..500 per call
{
"gradeId": "elem-5",
"subjectId": "math",
"unitId": "fraction-mult",
"difficulty": "medium",
"type": "multiple_choice",
"prompt": "3/4 × 2/5의 값은?",
"choices": ["3/10", "2/5", "5/8", "6/20"],
"answerText": "3/10",
"explanation": "분자끼리 곱하고 분모끼리 곱합니다."
}
]
}
- Max 500 problems per call. Larger jobs must be split into multiple calls.
- Reuse the same
batchIdonly to retry the exact same batch (StudyOS handles idempotency). Use a freshbatchIdfor each new batch. - Unknown extra fields on a problem are passed through to StudyOS untouched.
Output
{
"ok": true,
"batchId": "claude-web-20260810-0001",
"received": 100,
"accepted": 86,
"duplicates": 12,
"rejected": 2,
"remaining": 914,
"continueRecommended": true,
"message": "Imported batch ...: 86 new, 12 duplicate, 2 rejected (of 100 received)."
}
remainingisnullwhen StudyOS does not report cumulative progress — in that case Claude tracks its own running total ofaccepted.continueRecommendedis a hint for whether to generate another batch.- On
400 / 401 / 403 / 422the tool returnsisError: truewith a short message and does not retry. Transient failures (429 / 500 / 502 / 503 / 504 / network / timeout) are retried automatically with backoff, honoringRetry-After.
Configuration
All configuration is via environment variables. Never put the token in code, requests, logs, or git.
| Variable | Required | Default | Purpose |
|---|---|---|---|
STUDYOS_IMPORT_TOKEN |
yes | — | Server-to-server secret issued by the StudyOS admin. Sent as Authorization: Bearer <token>. |
STUDYOS_IMPORT_API_URL |
no | production URL | StudyOS Import API endpoint. |
TRANSPORT |
no | http |
http (Claude Web / remote) or stdio (local MCP Inspector). |
PORT |
no | 3000 |
HTTP listen port. |
ALLOWED_ORIGINS |
no | (empty) | Comma-separated Origin allow-list for POST /mcp. Empty = no Origin check. |
STUDYOS_REQUEST_TIMEOUT_MS |
no | 30000 |
Per-request timeout. |
STUDYOS_MAX_RETRIES |
no | 3 |
Max retry attempts for transient failures. |
Copy .env.example to .env for local development (the real token goes in your
host's secret manager, not in the repo).
Run locally
npm install
npm run build
# HTTP transport (what Claude Web connects to)
STUDYOS_IMPORT_TOKEN=<token> npm start
# -> http://localhost:3000/mcp (health: GET http://localhost:3000/healthz)
# stdio transport (for MCP Inspector)
STUDYOS_IMPORT_TOKEN=<token> npm run start:stdio
Inspect with the official MCP Inspector:
npx @modelcontextprotocol/inspector
Deploy
The server speaks Streamable HTTP (stateless JSON) and needs a public HTTPS URL for Claude Web.
Option A — long-running Node host (Railway / Render / Fly / a container)
Build command npm run build, start command npm start. Set
STUDYOS_IMPORT_TOKEN (and optionally STUDYOS_IMPORT_API_URL) as secrets.
Claude Web connects to https://<host>/mcp.
Option B — Vercel (serverless)
This repo includes api/mcp.ts and vercel.json. Deploy to Vercel, set the
env vars in the project settings, and Claude Web connects to:
https://<your-deployment>.vercel.app/api/mcp
Connect from Claude Web
- Deploy the server and confirm
GET /healthzreturns{ "ok": true }. - In Claude (web) → Settings → Connectors → Add custom connector.
- Enter the MCP URL:
- Node host:
https://<host>/mcp - Vercel:
https://<deployment>.vercel.app/api/mcp
- Node host:
- Save. Claude can now call
import_problems.
Then a user can simply ask, e.g.:
초5 수학 분수 단원 문제 1000개 만들어서 StudyOS 문제은행에 입고해줘.
Claude generates problems, calls import_problems in batches of ≤500, reads
accepted / remaining, and repeats until the target of new problems is met.
Security
- The token is read lazily from the environment and is never logged, returned, or placed in error messages. A defensive redactor strips it from any string just in case.
- No database credentials are used or accepted (no
DATABASE_URL,DIRECT_URL,SUPABASE_*, Prisma, or Postgres client). - The server exposes exactly one tool (
import_problems) and one upstream call (the StudyOS Import API) — no arbitrary request execution.
Testing
npm run typecheck # tsc --noEmit
npm test # vitest (schema, retry, normalization, redaction, tool e2e)
npm run build # tsc
The suite covers: valid/empty/oversized/invalid batches, 401/403/422 no-retry,
429/500 retry with Retry-After, network + timeout handling, response
normalization (partial success, duplicates, remaining, field-name variants),
token redaction, and a full in-memory MCP client → tool round trip.
Project layout
studyos-mcp-server/
├── api/mcp.ts # Vercel serverless entry (Option B)
├── vercel.json
├── src/
│ ├── index.ts # entry: HTTP (default) + stdio transports
│ ├── server.ts # createServer(): registers tools
│ ├── tools/importProblems.ts
│ ├── studyosClient.ts # HTTP client: auth, retry, timeout, normalization, redaction
│ ├── schemas.ts # Zod input schemas (basic shape check only)
│ ├── constants.ts # config + retry policy
│ └── types.ts
└── test/ # vitest suites
Установка Studyos Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/OrbitDev-ux/studyos-mcpFAQ
Studyos Server MCP бесплатный?
Да, Studyos Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Studyos Server?
Нет, Studyos Server работает без API-ключей и переменных окружения.
Studyos Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Studyos Server в Claude Desktop, Claude Code или Cursor?
Открой Studyos Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Studyos Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
