
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server that exposes tools for loading, fine-tuning, generating with, and exporting Unsloth-optimized language models.
Unsloth MCP Server is cataloged as an MCP server attributed to ototao. An MCP server that exposes tools for loading, fine-tuning, generating with, and exporting Unsloth-optimized language models. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache-2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Unsloth MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The export_model tool supports gguf, ollama, vllm, and huggingface output formats.
No, it is optional and only needed for gated or private models.
README.md · aa600dcab76b · 采集于 2026-11-13 10:32:52 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
An MCP server for Unsloth - a library that makes LLM fine-tuning 2x faster with 80% less memory.
Unsloth is a library that dramatically improves the efficiency of fine-tuning large language models:
Unsloth achieves these improvements through custom CUDA kernels written in OpenAI's Triton language, optimized backpropagation, and dynamic 4-bit quantization.
Current state: install from source (below). The package is prepared for npm (
name,bin,server.jsonregistry manifest are in place) but is not yet published — thenpx-based config in the next section works only after the npm publish lands.
Install Unsloth on the machine that will run the fine-tuning: pip install unsloth
Build the server from source:
git clone https://github.com/OtotaO/unsloth-mcp-server.git
cd unsloth-mcp-server
npm install
npm run build
Point your MCP client (Claude Desktop, Claude Code, Cline, Cursor, …) at the built entrypoint:
{
"mcpServers": {
"unsloth": {
"command": "node",
"args": ["/path/to/unsloth-mcp-server/build/index.js"],
"env": { "HUGGINGFACE_TOKEN": "your_token_here" }
}
}
}
HUGGINGFACE_TOKEN is optional (only needed for gated/private models). Omit the env block if you don't use one.
Once published to npm as unsloth-mcp-server, the same clients can run it over stdio via npx with no clone/build:
{
"mcpServers": {
"unsloth": {
"command": "npx",
"args": ["-y", "unsloth-mcp-server"],
"env": { "HUGGINGFACE_TOKEN": "your_token_here" }
}
}
}
For Claude Code: claude mcp add unsloth -- npx -y unsloth-mcp-server
Verify if Unsloth is properly installed on your system.
Parameters: None
Example:
const result = await use_mcp_tool({
server_name: "unsloth",
tool_name: "check_installation",
arguments: {}
});
Get a list of all models supported by Unsloth, including Llama, Mistral, Phi, and Gemma variants.
Parameters: None
Example:
const result = await use_mcp_tool({
server_name: "unsloth",
tool_name: "list_supported_models",
arguments: {}
});
Load a pretrained model with Unsloth optimizations for faster inference and fine-tuning.
Parameters:
model_name (required): Name of the model to load (e.g., "unsloth/Llama-3.2-1B")max_seq_length (optional): Maximum sequence length for the model (default: 2048)load_in_4bit (optional): Whether to load the model in 4-bit quantization (default: true)use_gradient_checkpointing (optional): Whether to use gradient checkpointing to save memory (default: true)Example:
const result = await use_mcp_tool({
server_name: "unsloth",
tool_name: "load_model",
arguments: {
model_name: "unsloth/Llama-3.2-1B",
max_seq_length: 4096,
load_in_4bit: true
}
});
Fine-tune a model with Unsloth optimizations using LoRA/QLoRA techniques.
Parameters:
model_name (required): Name of the model to fine-tunedataset_name (required): Name of the dataset to use for fine-tuningoutput_dir (required): Directory to save the fine-tuned modelmax_seq_length (optional): Maximum sequence length for training (default: 2048)lora_rank (optional): Rank for LoRA fine-tuning (default: 16)lora_alpha (optional): Alpha for LoRA fine-tuning (default: 16)batch_size (optional): Batch size for training (default: 2)gradient_accumulation_steps (optional): Number of gradient accumulation steps (default: 4)learning_rate (optional): Learning rate for training (default: 2e-4)max_steps (optional): Maximum number of training steps (default: 100)dataset_text_field (optional): Field in the dataset containing the text (default: 'text')load_in_4bit (optional): Whether to use 4-bit quantization (default: true)Example:
const result = await use_mcp_tool({
server_name: "unsloth",
tool_name: "finetune_model",
arguments: {
model_name: "unsloth/Llama-3.2-1B",
dataset_name: "tatsu-lab/alpaca",
output_dir: "./fine-tuned-model",
max_steps: 100,
batch_size: 2,
learning_rate: 2e-4
}
});
Generate text using a fine-tuned Unsloth model.
Parameters:
model_path (required): Path to the fine-tuned modelprompt (required): Prompt for text generationmax_new_tokens (optional): Maximum number of tokens to generate (default: 256)temperature (optional): Temperature for text generation (default: 0.7)top_p (optional): Top-p for text generation (default: 0.9)Example:
const result = await use_mcp_tool({
server_name: "unsloth",
tool_name: "generate_text",
arguments: {
model_path: "./fine-tuned-model",
prompt: "Write a short story about a robot learning to paint:",
max_new_tokens: 512,
temperature: 0.8
}
});
Export a fine-tuned Unsloth model to various formats for deployment.
Parameters:
model_path (required): Path to the fine-tuned modelexport_format (required): Format to export to (gguf, ollama, vllm, huggingface)output_path (required): Path to save the exported modelquantization_bits (optional): Bits for quantization (for GGUF export) (default: 4)Example:
const result = await use_mcp_tool({
server_name: "unsloth",
tool_name: "export_model",
arguments: {
model_path: "./fine-tuned-model",
export_format: "gguf",
output_path: "./exported-model.gguf",
quantization_bits: 4
}
});
You can use custom datasets by formatting them properly and hosting them on Hugging Face or providing a local path:
const result = await use_mcp_tool({
server_name: "unsloth",
tool_name: "finetune_model",
arguments: {
model_name: "unsloth/Llama-3.2-1B",
dataset_name: "json",
data_files: {"train": "path/to/your/data.json"},
output_dir: "./fine-tuned-model"
}
});
For large models on limited hardware:
| Model | VRAM | Unsloth Speed | VRAM Reduction | Context Length |
|---|---|---|---|---|
| Llama 3.3 (70B) | 80GB | 2x faster | >75% | 13x longer |
| Llama 3.1 (8B) | 80GB | 2x faster | >70% | 12x longer |
| Mistral v0.3 (7B) | 80GB | 2.2x faster | 75% less | - |
Apache-2.0
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Unsloth MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/unsloth-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.