Used for dependency management and running scripts to install, crawl documentation, and start the MCP server.
Onyx MCP Server
A Model Context Protocol (MCP) server providing search and query access to Onyx programming language documentation and GitHub code examples. The server includes comprehensive crawling capabilities to populate data, but crawling is NOT accessible through the MCP interface - ensuring clean separation between data collection and query functionality.
🚀 Quick Start
Installation & Setup
Basic Usage
🎯 Server Interface
The system provides both MCP query functionality and CLI-based crawling:
📁 Project Structure
🛠️ MCP Tools Available
The server provides these read-only search and query tools to Claude:
📚 Documentation
search_onyx_docs
- Search official documentationbrowse_onyx_sections
- Browse by sectionget_onyx_function_docs
- Function documentation
🐙 GitHub Integration
search_github_examples
- Search code by topicget_onyx_functions
- Function definitions from GitHubget_onyx_structs
- Struct definitions from GitHublist_github_repos
- List available repositories
🔍 Unified Search
search_all_sources
- Search across all data sourcesget_onyx_examples
- Legacy compatibility for examples
⚠️ Important Note
Crawling tools are available through the CLI but intentionally NOT accessible through the MCP interface. This ensures clean separation between data collection and query functionality.
🔧 Configuration
Environment Variables (.env)
🌐 Claude Desktop Integration
You can connect to the Onyx MCP in two ways:
Option 1: Local MCP Server (Recommended for Development)
Option 2: Connect to Hosted Server via Bridge
Option 3: Local HTTP Server + Bridge
For testing the bridge locally:
- Start the HTTP server:
- Configure Claude Desktop to use the bridge:
🚀 Quick Start Guide
For Development (Local Setup)
- Clone and setup:
- Populate data:
- Start MCP server:
- Configure Claude Desktop with local server (see integration section above)
For Production (Hosted Server)
- Clone and setup:
- Start bridge to hosted server:
- Configure Claude Desktop with bridge (see integration section above)
Bridge Architecture
The bridge allows you to connect the MCP protocol to HTTP servers:
Benefits:
- ✅ Connect to hosted Onyx MCP at
mcp.onyxlang.io
- ✅ No need to run local server or populate data
- ✅ Always up-to-date with latest Onyx information
- ✅ Same MCP interface, different backend
- ✅ Easy switching between local and remote servers
📊 Data Sources & Crawling
The system includes comprehensive crawling capabilities to populate data:
📚 Documentation Sources
- Official Onyx documentation
- Tutorial and guide files
- API documentation
- Language reference materials
🐙 GitHub Sources
- Onyx language repositories
- Code examples and tutorials
- Package and library documentation
- Configuration files and project setups
📁 Supported File Types
.onyx
source files.kdl
configuration files- README, documentation, and guide files
- HTML documentation pages
- Package configurations (
onyx.pkg
, etc.)
🔄 Data Population Process
- Use CLI crawling commands to populate the
data/
directory - MCP server searches the pre-crawled data
- No crawling triggers are available through the MCP interface
📡 Enhanced GitHub Crawling
The GitHub crawler extracts comprehensive content:
📚 Documentation:
- README.md, LICENSE, CHANGELOG.md
- All documentation in
docs/
folders - HTML documentation and web pages
- Tutorial and guide files
🔧 Configuration:
.kdl
files (Onyx project management)onyx.pkg
and package configurations- TOML, YAML, JSON configs
💻 Source Code:
- All
.onyx
source files - Example and tutorial files
- HTML examples and web interfaces
🌐 Web Content:
- HTML documentation pages
- Interactive examples and demos
- Web-based tutorials and guides
- API documentation in HTML format
Repository Management
🧪 Testing & Validation
Tests validate:
- ✅ File structure integrity
- ✅ Module import functionality
- ✅ Data directory operations
- ✅ Crawler configurations
- ✅ Search engine error handling
💡 Usage Examples
Once connected to Claude Desktop:
🔧 Configurable Context System
Global Context Message
All MCP tool responses include a configurable context message that can be easily modified at the top of src/mcp-server.js
:
This allows you to:
- Customize the assistant's context for Onyx queries
- Provide consistent guidance across all tool responses
- Easily update instructions without modifying individual tools
- Maintain context coherence throughout conversations
🚀 Key Design Principles
Security & Separation of Concerns
- MCP interface is read-only - cannot trigger crawling or data modification
- Crawling available through CLI - full control over data collection
- Clean architecture - data collection separate from query functionality
- No external API calls through MCP tools
Enhanced User Experience
- Consistent context across all responses
- Tool-specific messaging for clarity
- Comprehensive error handling with context
- Legacy compatibility for existing workflows
🔍 Data Flow
- CLI Crawling Commands populate data sources in
data/
directory - Search Engine indexes and provides unified search capabilities
- MCP Server exposes read-only search tools to Claude
- Claude receives contextual responses with configurable messaging
- Context System ensures consistent, helpful guidance in all responses
- No crawling triggers available through MCP interface
📈 Performance
- Efficient caching prevents unnecessary re-crawling
- Rate limiting respects API limits
- Parallel processing for multiple repositories
- Comprehensive error handling for reliability
This MCP server provides Claude with secure, read-only access to Onyx programming language knowledge through a configurable context system. Comprehensive crawling capabilities are available through CLI commands but intentionally not accessible through the MCP interface, ensuring clean separation between data collection and query functionality.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides AI systems with access to Onyx programming language documentation through web crawling and intelligent search capabilities.
Related MCP Servers
- -securityFlicense-qualityEnables AI assistants to enhance their responses with relevant documentation through a semantic vector search, offering tools for managing and processing documentation efficiently.Last updated -6213TypeScript
- -securityAlicense-qualityAccess any documentation indexed by RagRabbit Open Source AI site searchLast updated -333TypeScriptMIT License
- -securityAlicense-qualityConnect your MCP-compatible clients to Onyx AI knowledge bases for enhanced semantic search and chat capabilities. Retrieve relevant context from your documents seamlessly, enabling powerful interactions and comprehensive answers. Streamline knowledge management and improve access to information acrLast updated -807TypeScriptMIT License
- -securityAlicense-qualityProvides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.Last updated -62TypeScriptMIT License