SJTU MCP
SJTU MCP
English | 中文
Превратите ваш API-ключ SJTU Zhiyuan No.1 в инструмент, который можно реально использовать в Claude Code и Codex.
SJTU MCP оборачивает API моделей, размещенных в SJTU, в локальный MCP-сервер, поэтому вы можете вызывать эти модели напрямую из вашего обычного рабочего процесса агента, вместо того чтобы постоянно писать скрипты интеграции вручную.
Зачем это нужно
Вы уже получили API-ключ SJTU Zhiyuan No.1, но все еще находите его сложным для практического использования?
Этот проект существует именно для решения этой проблемы:
у вас уже есть доступ к API
вы хотите использовать его из
Claude CodeилиCodexно сама конечная точка SJTU не подключается напрямую к этим инструментам агентов «из коробки»
вы не хотите каждый раз переписывать уровень интеграции
Related MCP server: Claude-LMStudio-Bridge
Основные возможности
Поддержка
Claude CodeПоддержка
CodexПоддержка как текстовых, так и визуальных задач
Использование конечной точки SJTU, совместимой с OpenAI
Естественная интеграция в существующие рабочие процессы MCP
Содержание
Быстрый старт
Для большинства пользователей самый простой путь:
git cloneэтого репозиторияcdв директорию проектаустановите его один раз
добавьте его как глобальный MCP-сервер в
Claude CodeилиCodex
git clone https://github.com/EternalWavee/sjtu-mcp.git
cd sjtu-mcp
pip install -e .После установки ваш MCP-клиент сможет автоматически запускать сервер при необходимости. При обычном использовании вам не нужно каждый раз вручную запускать команду сервера.
Переменные окружения
Обязательные:
SJTU_API_KEY
Опциональные:
SJTU_API_BASE_URLSJTU_DEFAULT_TEXT_MODELSJTU_DEFAULT_REASONING_MODELSJTU_DEFAULT_VISION_MODELSJTU_REQUEST_TIMEOUT
Как их использовать:
.env.example— это только шаблон, показывающий, какие переменные вам нужныпри фактическом использовании поместите эти значения в блок
envвашей конфигурации MCP
Claude Code
Рекомендуется: Область пользователя (User Scope)
Используйте это, если хотите, чтобы sjtu был доступен во всех ваших проектах Claude Code на этой машине.
claude mcp add sjtu --scope user -- python -m sjtu_mcp.serverЗатем:
откройте
~/.claude.jsonнайдите запись
sjtuскопируйте раздел
envиз examples/claude-project.mcp.jsonзамените
your-api-keyна ваш реальный ключ
Проверка:
claude mcp listОбласть проекта (Project Scope)
Используйте это, если хотите закоммитить общую конфигурацию в репозиторий для коллег.
Как использовать:
скопируйте examples/claude-project.mcp.json в корень вашего проекта как
.mcp.jsonзамените
your-api-keyна ваш реальный ключпри необходимости настройте модели по умолчанию и тайм-аут
Пример для Windows / macOS:
{
"mcpServers": {
"sjtu": {
"command": "python",
"args": ["-m", "sjtu_mcp.server"],
"env": {
"SJTU_API_BASE_URL": "https://models.sjtu.edu.cn/api/v1",
"SJTU_API_KEY": "your-api-key",
"SJTU_DEFAULT_TEXT_MODEL": "deepseek-chat",
"SJTU_DEFAULT_REASONING_MODEL": "deepseek-reasoner",
"SJTU_DEFAULT_VISION_MODEL": "qwen3vl",
"SJTU_REQUEST_TIMEOUT": "180"
}
}
}
}Локальная область (Local Scope)
Используйте это, если вам нужен сервер только для текущего проекта и вы не хотите коммитить конфигурацию.
claude mcp add sjtu --scope local -- python -m sjtu_mcp.serverЗатем добавьте те же значения env в соответствующую запись конфигурации MCP.
Codex
Рекомендуется: Глобальная настройка
Используйте это, если хотите, чтобы sjtu был доступен во всех ваших проектах Codex на этой машине.
codex mcp add sjtu -- python -m sjtu_mcp.serverЗатем:
откройте ваш
~/.codex/config.tomlскопируйте содержимое из examples/codex-config.toml
замените
your-api-keyна ваш реальный ключсохраните и перезагрузите Codex или перезагрузите MCP
Проверка:
codex mcp listНастройка через файл конфигурации
Если вы уже управляете ~/.codex/config.toml напрямую, вы можете использовать этот шаблон:
[mcp_servers.sjtu]
command = "python"
args = ["-m", "sjtu_mcp.server"]
[mcp_servers.sjtu.env]
SJTU_API_BASE_URL = "https://models.sjtu.edu.cn/api/v1"
SJTU_API_KEY = "your-api-key"
SJTU_DEFAULT_TEXT_MODEL = "deepseek-chat"
SJTU_DEFAULT_REASONING_MODEL = "deepseek-reasoner"
SJTU_DEFAULT_VISION_MODEL = "qwen3vl"
SJTU_REQUEST_TIMEOUT = "180"Инструменты
sjtu_modelssjtu_textsjtu_visionsjtu_cheap_task
Пример
Ввод
请调用 sjtu_vision 分析图片里面的内容 .assets/test.png
Вывод

Рекомендуемое использование моделей
deepseek-chatпо умолчанию для суммаризации, переписывания, очистки и простых текстовых задач
minimaxилиglm-5полезны для легкого переписывания, классификации или извлечения данных
deepseek-reasonerлучше подходит для задач, требующих многошагового рассуждения
qwen3vlотличная отправная точка для скриншотов, извлечения данных в стиле OCR и понимания изображений
qwen3coderполезен для вспомогательных задач, связанных с кодом
Примечания
Этот сервер в настоящее время предполагает, что конечная точка SJTU поддерживает совместимые с OpenAI
/modelsи/chat/completions.Локальные изображения кодируются как data URL перед отправкой.
Если ваша университетская конечная точка имеет специфические особенности моделей, расширьте маршрутизацию в src/sjtu_mcp/server.py.
Available Tools
4 toolssjtu_cheap_taskC
Route common low-risk jobs like summarize, rewrite, classify, and extract.
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| content | Yes | ||
| image_path | No | ||
| image_url | No | ||
| model | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, and the description only says 'low-risk jobs,' which hints at safety but does not disclose actual behavioral traits like idempotency, side effects, or permission requirements.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, concise but lacking structure. It is front-loaded with the main purpose, but does not expand on important details, making it minimally adequate.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 5 parameters with no descriptions and no annotations, the description is incomplete. It does not specify valid task types, content format, or how image path/url are used, which is insufficient for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description adds no meaning to any of the 5 parameters (task, content, image_path, etc.). It fails to explain valid values or parameter purposes beyond what the schema already shows.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool routes common low-risk jobs like summarize, rewrite, classify, and extract, giving a specific verb and resource. It distinguishes from sibling tools by implying a generic task router, though it could be more precise.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit guidance on when to use this tool versus alternatives. The description only lists example jobs, lacking when-not-to-use or comparisons with siblings like sjtu_text or sjtu_vision.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
sjtu_modelsA
List available models from the SJTU endpoint.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description should disclose behavioral traits. It only states the action (list) but does not explain that it is a read-only operation, any potential side effects, or required permissions. The agent has no additional context beyond the basic purpose.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no unnecessary words. It conveys the core functionality efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has no parameters, the description is somewhat adequate but lacks usage context. It does not explain how the output schema relates to usage or provide hints for integration with sibling tools. The presence of an output schema mitigates the need for return value details, but the description could be more helpful by mentioning use cases.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are no parameters, so schema coverage is trivially 100%. The description adds no parameter info, which is acceptable as there is nothing to describe. Baseline 4 for zero parameters is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb (List), resource (available models), and source (SJTU endpoint). It effectively differentiates from sibling tools like sjtu_cheap_task, sjtu_text, and sjtu_vision, which target different operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance provided on when to use this tool versus alternatives. There is no mention of prerequisites, context, or conditions for using sjtu_models.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
sjtu_textC
Run a plain text task against the SJTU OpenAI-compatible API.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| model | No | ||
| system_prompt | No | ||
| temperature | No | ||
| max_tokens | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, and the description does not disclose behavioral traits such as idempotency, side effects, rate limits, or cost. The tool's safety profile (read vs. write) is unclear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence but lacks necessary detail. It is under-specified rather than appropriately concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 5 parameters, no annotations, and an output schema not described, the description fails to provide a complete picture. The tool's return value and parameter usage are left unspecified.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description adds no meaning beyond the parameter names. It does not explain the role of model, system_prompt, temperature, or max_tokens.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states the verb 'run' and resource 'plain text task' against a specific API. It distinguishes from vision tasks but does not clarify what 'plain text task' entails compared to the sibling sjtu_cheap_task.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives like sjtu_cheap_task or sjtu_vision. No context on cost, speed, or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
sjtu_visionC
Run an image understanding task against the default vision model.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| image_path | No | ||
| image_url | No | ||
| model | No | ||
| system_prompt | No | ||
| temperature | No | ||
| max_tokens | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description bears full responsibility for behavioral disclosure. It only states that the tool runs an image understanding task, but does not explain side effects, authentication needs, return type, or limitations. The minimal description is insufficient for safe usage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence with no extraneous content. However, it sacrifices clarity for brevity; it could be more informative without adding much length.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 7 parameters, no annotations, and an existing but undescribed output schema, the description is too minimal. It does not explain parameter interplay (e.g., image_path vs image_url) or output format, leaving significant gaps for effective invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It adds no explanation for parameters such as prompt, image_path, image_url, model, system_prompt, temperature, or max_tokens, leaving their semantics entirely to interpretation from names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states 'Run an image understanding task against the default vision model', which clearly indicates a verb and resource. However, 'image understanding task' is vague and does not specify the exact capability (e.g., captioning, VQA), and it fails to distinguish from sibling tools like sjtu_cheap_task or sjtu_text.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool over alternatives like sjtu_cheap_task or sjtu_text. No prerequisites or exclusions are mentioned, leaving the agent to guess appropriate contexts.
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.
4 tool updates
v0.1.1- First observed
sjtu_cheap_task - First observed
sjtu_models - First observed
sjtu_text - First observed
sjtu_vision
TDQS
Scored across 4 tools
sjtu_cheap_task and sjtu_text both handle text tasks, creating potential confusion. sjtu_cheap_task specifies common low-risk jobs, but the boundary with sjtu_text is unclear. sjtu_models and sjtu_vision are distinct.
All tools share the consistent 'sjtu_' prefix and snake_case naming, but the pattern varies between adjective_noun (sjtu_cheap_task) and noun-only (sjtu_models, sjtu_text, sjtu_vision), which is mostly consistent with minor deviations.
Four tools is well-scoped for the SJTU endpoint, covering essential capabilities (listing models, text, vision, and a cheap task option) without unnecessary bloat.
The set covers core functionalities, but the overlap between sjtu_cheap_task and sjtu_text suggests redundancy; missing streaming or embeddings are minor gaps for basic use.
Maintenance
Related MCP Connectors
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
Synap (pool.linkrra.com/v1), Linkrra's OpenAI-compatible LLM API, as an MCP server.
MCP server for AI dialogue using various LLM models via AceDataCloud
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Related MCP Servers
- AlicenseAqualityBmaintenanceLocal MCP server that wraps the headless Claude Code CLI as MCP tools, providing stateless access to Claude's coding capabilities through prompt-based interactions. It enables users to execute Claude Code commands with various prompt formats and structured outputs directly from MCP clients.3MIT
- AlicenseNot gradedqualityFmaintenanceA simple MCP server that enables Claude to communicate with locally running LLM models via LM Studio.9MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that lets Claude Code delegate mechanical tasks to a local LLM for summarization, classification, extraction, and drafting.5 npm11MIT
- FlicenseBqualityDmaintenanceMCP server that proxies GPT API calls for Claude Code, supporting multiple GPT models with both standard and streaming responses.2-