Unsloth AI Documentation
Search and retrieve content from the Unsloth AI documentation.
Unsloth AI Documentation MCP Server
A simple FastMCP implementation to connect to and query Unsloth AI documentation.
Overview
This MCP (Model Context Protocol) server provides access to Unsloth AI documentation through a set of tools that can fetch and search the documentation content. It's built using FastMCP, a Python framework for creating MCP servers.
Features
The server provides the following tools:
- search_unsloth_docs: Search the Unsloth documentation for specific topics or keywords
- get_unsloth_quickstart: Get the quickstart guide and installation instructions
- get_unsloth_models: Get information about supported models in Unsloth
- get_unsloth_tutorials: Get information about tutorials and fine-tuning guides
- get_unsloth_installation: Get detailed installation instructions
Installation
-
Clone or download this repository
-
Install dependencies:
pip install -r requirements.txtOr if you prefer using uv:
uv pip install -r requirements.txt
Usage
Running the Server
There are several ways to run the MCP server:
1. Direct Python execution
python unsloth_mcp_server.py
2. Using FastMCP CLI
fastmcp run unsloth_mcp_server.py:mcp
3. Using the test client
python test_client.py
Available Tools
search_unsloth_docs(query: str)
Search the Unsloth documentation for specific information.
Example:
result = await client.call_tool("search_unsloth_docs", {"query": "fine-tuning"})
get_unsloth_quickstart()
Get the quickstart guide and basic setup information.
Example:
result = await client.call_tool("get_unsloth_quickstart", {})
get_unsloth_models()
Get information about models supported by Unsloth.
Example:
result = await client.call_tool("get_unsloth_models", {})
get_unsloth_tutorials()
Get information about available tutorials and guides.
Example:
result = await client.call_tool("get_unsloth_tutorials", {})
get_unsloth_installation()
Get detailed installation instructions.
Example:
result = await client.call_tool("get_unsloth_installation", {})
Connecting to MCP Clients
This server can be used with any MCP-compatible client. The server runs using the standard MCP stdio transport protocol.
Claude Desktop Integration
To use this server with Claude Desktop, add the following to your Claude Desktop configuration:
{
"mcpServers": {
"unsloth-docs": {
"command": "python",
"args": ["path/to/unsloth_mcp_server.py"],
"cwd": "path/to/unsloth-mcp"
}
}
}
Other MCP Clients
The server can be used with any MCP client by pointing it to the server file:
from fastmcp import Client
client = Client("unsloth_mcp_server.py")
File Structure
unsloth-mcp/
├── README.md # This file
├── requirements.txt # Python dependencies
├── unsloth_mcp_server.py # Main MCP server implementation
└── test_client.py # Test client for testing the server
How It Works
- Web Scraping: The server fetches content from the Unsloth documentation website (https://docs.unsloth.ai)
- Content Processing: Uses BeautifulSoup to parse HTML and extract relevant text content
- Search Functionality: Implements simple keyword matching to find relevant sections
- MCP Protocol: Exposes the functionality through FastMCP tools that can be called by MCP clients
Dependencies
- fastmcp: The FastMCP framework for creating MCP servers
- requests: For making HTTP requests to fetch documentation
- beautifulsoup4: For parsing HTML content
Limitations
- The server currently performs simple keyword-based searching rather than semantic search
- It fetches content in real-time, which may be slower than cached content
- Limited to the main documentation page content (could be extended to crawl multiple pages)
Future Enhancements
Potential improvements could include:
- Caching: Cache documentation content to improve response times
- Multi-page Crawling: Fetch content from multiple documentation pages
- Semantic Search: Implement more sophisticated search using embeddings
- Content Indexing: Pre-index content for faster searches
- Rate Limiting: Add proper rate limiting for web requests
Contributing
Feel free to submit issues or pull requests to improve the server functionality.
License
This project is open source. Please check the Unsloth AI documentation website terms of use when using their content.
संबंधित सर्वर
中指房产估值MCP
MCP服务器,提供房产小区评级和评估功能
Teleport Documentation
Search and query Teleport's documentation using embeddings stored in a local Chroma vector database.
Semantic Search Of Reddit
MCP server that enables AI assistants to search Reddit conversations, explore subreddits, and access trending topics.
NPM Search
Search for npm packages
Shodan MCP Server
Query internet-connected devices, services, and vulnerabilities using the Shodan API and CVE database.
Deep Research
A server for conducting deep research and generating reports.
Crawleo MCP Server
Crawleo MCP - Web Search & Crawl for AI Enable AI assistants to access real-time web data through native tool integration. Two Powerful Tools: web.search - Real-time web search with flexible formatting Search from any country/language Device-specific results (desktop, mobile, tablet) Multiple output formats: Enhanced HTML (AI-optimized, clean) Raw HTML (original source) Markdown (formatted text) Plain Text (pure content) Auto-crawl option for full content extraction Multi-page search support web.crawl - Deep content extraction Extract clean content from any URL JavaScript rendering support Markdown conversion Screenshot capture Multi-URL support Features: ✅ Zero data retention (complete privacy) ✅ Real-time, not cached results ✅ AI-optimized with Enhanced HTML mode ✅ Global coverage (any country/language) ✅ Device-specific search (mobile/desktop/tablet) ✅ Flexible output formats (4 options) ✅ Cost-effective (5-10x cheaper than competitors) ✅ Simple Claude Desktop integration Perfect for: Research, content analysis, data extraction, AI agents, RAG pipelines, multi-device testing
EzBiz SEO & Marketing Analysis
AI-powered keyword research, SERP analysis, backlink checking, and content optimization for SEO.
News Fact-Checker
Automated fact-checking of news headlines using web search and Google Gemini AI.
Handaas Enterprise Big Data Service
Provides comprehensive enterprise information query and analysis, including business info, risk analysis, intellectual property, and operational insights.