MCP Rust/Slint Development Server
Provides up-to-date information for Rust and Slint development by fetching real-time data from GitHub repositories, including package search, UI components, release news, and development resources with automatic caching and refresh capabilities.
README
MCP Rust/Slint Development Server
<div align="center">
🚀 FREE & OPEN SOURCE MCP SERVER FOR RUST & SLINT DEVELOPMENT
This is completely free software - use it, modify it, and contribute back to the community!
</div>
A Model Context Protocol (MCP) server that provides current information for Rust and Slint development, including packages, components, news, and resources from GitHub and other reputable sources.
Overview
This MCP server serves up-to-date information for Rust and Slint development by:
- Fetching Data from GitHub: Real-time data from official Rust and Slint repositories
- Maintaining Local Cache: SQLite database with automatic freshness checking
- Providing MCP Tools: Six specialized tools for querying development information
- Auto-Refresh: Automatically updates data older than 24 hours on startup
Features
🔍 Search Capabilities
- Rust Packages: Search popular Rust crates and libraries
- Slint Components: Find Slint UI components and examples
- Development News: Latest releases and announcements from both ecosystems
📊 Data Sources
- GitHub Repositories: Official Rust and Slint repositories
- Package Registries: Current package information and statistics
- Release Feeds: Real-time release announcements and updates
- Community Data: Popular packages and trending components
🛠️ MCP Tools
search_rust_packages- Search and discover Rust cratessearch_slint_components- Find Slint UI componentsget_rust_news- Latest Rust ecosystem newsget_slint_news- Recent Slint project updatesrefresh_data- Manual data refresh capabilitiesget_data_status- Cache status and data freshness monitoring
Installation
Prerequisites
- Node.js 18+
- npm or yarn
- Git
Setup
-
Clone the repository:
git clone https://github.com/RKTakami/mcp-rust-slint-server.git cd mcp-rust-slint-server -
Install dependencies:
npm install -
Compile TypeScript:
npm run build -
Test the server:
npm test
Configuration
For Roo Code
Add to your MCP settings:
{
"mcpServers": {
"rust-slint-dev": {
"command": "node",
"args": ["build/index.js"],
"env": {},
"disabled": false,
"alwaysAllow": [],
"disabledTools": []
}
}
}
For VSCode
Add to your VSCode MCP settings:
{
"mcpServers": {
"rust-slint-dev": {
"command": "node",
"args": ["build/index.js"],
"env": {},
"disabled": false,
"alwaysAllow": [],
"disabledTools": []
}
}
}
Usage
MCP Tools
Search Rust Packages
// Search for popular Rust packages
await tools.search_rust_packages({
query: "web framework",
limit: 10
});
Search Slint Components
// Find Slint UI components
await tools.search_slint_components({
query: "button",
category: "ui",
limit: 10
});
Get Latest News
// Get latest Rust news
await tools.get_rust_news({
limit: 10
});
// Get latest Slint news
await tools.get_slint_news({
limit: 10
});
Data Management
// Check data freshness
await tools.get_data_status();
// Refresh specific data type
await tools.refresh_data({
type: "rust_packages"
});
// Refresh all data
await tools.refresh_data({
type: "all"
});
Database Structure
The server uses SQLite with the following tables:
- rust_packages: Popular Rust crates and packages
- slint_components: Slint UI components and examples
- rust_news: Latest Rust releases and announcements
- slint_news: Recent Slint project updates
- data_cached_at: Cache timestamp tracking for data freshness
Architecture
Data Flow
- Startup: Server checks data freshness on initialization
- Cache Validation: Compares cache timestamps against 24-hour threshold
- GitHub API: Fetches fresh data from official repositories
- Database Update: Stores new data in SQLite database
- Tool Execution: Serves cached data through MCP tools
Technology Stack
- Runtime: Node.js with TypeScript
- MCP SDK:
@modelcontextprotocol/sdk - Database: SQLite with
better-sqlite3 - HTTP Client: Axios for GitHub API calls
- Data Sources: GitHub REST API v3
Development
Project Structure
mcp-rust-slint-server/
├── src/
│ └── index.ts # Main server implementation
├── build/
│ └── index.js # Compiled JavaScript
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── test_server.js # Test suite
└── README.md # This file
Scripts
npm run build- Compile TypeScript to JavaScriptnpm test- Run test suitenpm start- Start the MCP server
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
API Endpoints
The server provides the following MCP tools:
search_rust_packages
- Description: Search for Rust packages and crates
- Parameters:
query(string): Search querylimit(number, optional): Maximum results (1-100, default: 10)
search_slint_components
- Description: Search for Slint UI components
- Parameters:
query(string): Search querycategory(string, optional): Filter by categorylimit(number, optional): Maximum results (1-100, default: 10)
get_rust_news
- Description: Get latest Rust ecosystem news
- Parameters:
limit(number, optional): Maximum results (1-50, default: 10)
get_slint_news
- Description: Get latest Slint project updates
- Parameters:
limit(number, optional): Maximum results (1-50, default: 10)
refresh_data
- Description: Manually refresh data from GitHub
- Parameters:
type(enum): Data type to refresh ('rust_packages', 'slint_components', 'rust_news', 'slint_news', 'all')
get_data_status
- Description: Get cache status and data freshness information
- Parameters: None
🆓 License & Open Source
MIT License - Completely Free & Open Source
This project is 100% free and open source under the MIT License. You have the freedom to:
- ✅ Use it commercially - No restrictions
- ✅ Modify and customize - Make it your own
- ✅ Distribute freely - Share with others
- ✅ Contribute back - Help improve the project
- ✅ Use in any project - No attribution required
What This Means
- No Cost: Completely free to use
- No Restrictions: Use in personal, commercial, or open source projects
- Community Driven: Built by the community, for the community
- Contributions Welcome: Help make it better for everyone
License Details
MIT License
Copyright (c) 2025 RKTakami
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Full license text: See LICENSE file for complete details.
Support
For issues, questions, or contributions, please visit the GitHub repository.
Changelog
v0.1.0
- Initial release
- Six MCP tools for Rust and Slint development
- GitHub API integration
- SQLite database with auto-refresh
- Roo Code and VSCode integration
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。