HISE MCP Server
Provides access to HISE documentation, including UI component properties, Scripting API methods, and module parameters. It features a searchable database of code snippets and best practices to assist in audio software development.
README
HISE MCP Server
A Model Context Protocol (MCP) server for querying HISE documentation, including UI component properties, Scripting API methods, module parameter IDs, and a best-practice code snippet database.
Requirements
- Node.js 18+ (Required - not compatible with older versions)
- npm or yarn
Features
- Exact Query Tools: Look up specific UI component properties, Scripting API methods, and module parameters with precise matching
- Code Snippet Database: Browse and retrieve 100-150 code examples organized by metadata (category, tags, difficulty)
- Best Practice Guide: Code snippets serve as a reference for AI agents implementing HISE solutions
- Fast Lookups: Indexed data structures for O(1) exact queries
- Type-Safe: Full TypeScript implementation
Available Tools
Exact Query Tools
-
query_ui_property- Query UI component properties- Input:
componentType,propertyName - Returns: Property details including type, default value, description, and possible values
- Input:
-
query_scripting_api- Query Scripting API methods- Input:
namespace,methodName - Returns: Method signature, parameters, return type, description, and example usage
- Input:
-
query_module_parameter- Query module parameter IDs- Input:
moduleType,parameterId - Returns: Parameter details including min/max values, step size, default value, and description
- Input:
Code Snippet Tools
-
list_snippets- List all available code snippets with metadata- Input: none
- Returns: Array of snippet summaries (id, title, description, category, tags, difficulty)
- Use this first to browse and discover relevant snippets
-
get_snippet- Get full details and code for a specific snippet- Input:
id(snippet ID fromlist_snippets) - Returns: Complete snippet with code, related APIs, and components
- Input:
Listing Tools
list_ui_components- List all available UI component typeslist_scripting_namespaces- List all available Scripting API namespaceslist_module_types- List all available module types
Installation
Check Node.js Version
First, verify your Node.js version:
node --version
If you have Node.js < 18, you must upgrade. Use one of these methods:
Option 1: Using nvm (recommended on macOS/Linux):
nvm install 20
nvm use 20
Option 2: Using nvm-windows (recommended on Windows):
- Download nvm-windows from: https://github.com/coreybutler/nvm-windows/releases
- Install it, then run:
nvm install 20
nvm use 20
Option 3: Direct download: Download the LTS version from: https://nodejs.org/
Setup
-
Clone or download this repository
-
Install dependencies:
npm install
- Build the project and configure opencode (recommended):
npm run build:configure
This will:
- Compile TypeScript to JavaScript
- Automatically find and update your opencode config file
- Add the HISE MCP server entry with the correct absolute path
Or manually build only:
npm run build
- Set up environment variables:
# Optional: Custom path to HISE data JSON file
# Default: ./data/hise-data.json
export HISE_DATA_PATH="/path/to/your/hise-data.json"
On Windows (Command Prompt):
set HISE_DATA_PATH=C:\path\to\hise-data.json
On Windows (PowerShell):
$env:HISE_DATA_PATH="C:\path\to\hise-data.json"
Usage
Running the Server
npm start
The server will start and listen for MCP connections via stdio.
Using with Claude Desktop
Add the HISE MCP server configuration to your Claude Desktop config file.
Finding the Config File
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json (usually C:\Users\<username>\AppData\Roaming\Claude\)
Configuration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"hise": {
"command": "node",
"args": ["D:\\development\\projekte\\hise_mcp\\dist\\index.js"],
"env": {
"HISE_DATA_PATH": "D:\\development\\projekte\\hise_mcp\\data\\hise-data.json"
}
}
}
}
Important: Replace the paths with your actual installation path. Use absolute paths (not relative).
Restart Claude Desktop
After adding the configuration, completely quit and restart Claude Desktop to load the MCP server.
Verification
Once connected, you can verify the server is working by asking Claude:
List all available tools from the HISE MCP server
Using with Opencode
The easiest way to configure Opencode is to use the automated script:
npm run build:configure
This will:
- Build the TypeScript project
- Find your opencode config file automatically
- Add or update the HISE MCP server entry with the correct absolute path
- Create the config directory if it doesn't exist
After running, restart Opencode to load the MCP server.
Manual Configuration
If you prefer to configure manually, add the following to your opencode.json:
Config location:
- macOS/Linux:
~/.local/share/opencode/opencode.json - Windows:
%USERPROFILE%\.config\opencode\opencode.json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"hise": {
"type": "local",
"command": ["node", "/path/to/hise_mcp_server/dist/index.js"],
"enabled": true
}
}
}
Important notes:
- Use
$schemaat the top for validation - The
commandmust be an array with each argument as a separate element - Replace
/path/to/hise_mcp_server/dist/index.jswith your actual installation path - Use forward slashes on Windows or double backslashes (
\\) - Set
enabled: trueto activate the server - After
git pull, runnpm run buildto rebuild TypeScript
Using from Opencode
Once configured, you can use HISE MCP server tools directly in Opencode:
-
Browse code snippets:
Can you list all available HISE code snippets? -
Query specific data:
What are the properties of a Knob component? -
Get full code examples:
Show me the full code for handling MIDI note events -
Referencing by server name:
Use the hise MCP server to find information about Synth API methods
Relative vs Absolute Paths
- Opencode: Can use relative paths (
["node", "./dist/index.js"]) if running fromhise_mcpdirectory - Claude Desktop: Requires absolute paths (
D:\development\projekte\hise_mcp\dist\index.js)
Example Queries
- Query a UI property:
query_ui_property(componentType="Knob", propertyName="text")
- Query a Scripting API method:
query_scripting_api(namespace="Synth", methodName="addNote")
- Query a module parameter:
query_module_parameter(moduleType="SimpleEnvelope", parameterId="Attack")
- List all code snippets:
list_snippets()
- Get a specific code snippet:
get_snippet(id="handle-midi-note-events")
- List available UI components:
list_ui_components()
Data Format
The server expects a JSON file with the following structure (see data/hise-data.json for a complete example):
{
"uiComponentProperties": [
{
"id": "unique-id",
"componentType": "Knob",
"propertyName": "text",
"propertyType": "String",
"defaultValue": "",
"description": "Description of the property",
"possibleValues": ["value1", "value2"]
}
],
"scriptingAPI": [
{
"id": "unique-id",
"namespace": "Synth",
"methodName": "addNote",
"returnType": "void",
"parameters": [...],
"description": "Description",
"example": "code example"
}
],
"moduleParameters": [
{
"id": "unique-id",
"moduleType": "SimpleEnvelope",
"parameterId": "Attack",
"parameterName": "Attack Time",
"min": 0,
"max": 10000,
"step": 0.1,
"defaultValue": 20,
"description": "Description"
}
],
"codeSnippets": [
{
"id": "unique-id",
"title": "Snippet Title",
"description": "Detailed description",
"category": "Category",
"tags": ["tag1", "tag2"],
"code": "// HISE code here",
"relatedAPIs": ["API1", "API2"],
"relatedComponents": ["Component1"],
"difficulty": "intermediate"
}
]
}
Data Generation
The HISE data file is expected to be auto-generated from official HISE documentation. You would typically:
- Scrape/parse the HISE documentation
- Extract UI component properties, API methods, and module parameters
- Collect and curate code examples
- Format according to the JSON schema above
- Save to
data/hise-data.json
Architecture
src/types.ts- TypeScript type definitions for all data structuressrc/data-loader.ts- Data loading, indexing, and retrieval logicsrc/index.ts- MCP server implementation with tool definitions
Data Access Pattern
For code snippets, use a two-step process:
- Call
list_snippets()to browse available snippets with metadata - Call
get_snippet(id)to retrieve full code for specific snippets
This keeps responses lightweight and allows AI agents to select only relevant examples.
Development
Development mode (with auto-rebuild):
npm run dev
TypeScript compilation:
npm run build
Updating after git pull
After pulling changes from the repository:
git pull
npm run build:configure
This will rebuild TypeScript and update the opencode config with the new code. Then restart Opencode.
Troubleshooting
Server fails to start
- Ensure all dependencies are installed (
npm install) - Verify the data file path is correct
- Check the JSON data file is valid JSON format
Exact queries returning no results
- Verify exact spelling (case-insensitive but exact match otherwise)
- Use
list_*tools to discover available values - Check that your data JSON contains the requested items
Code snippets not found
- Call
list_snippets()to see all available snippet IDs - Verify the snippet ID is correct (use exact ID from list results)
- Check that your data JSON contains the snippet
License
MIT
Contributing
Contributions are welcome! Please ensure any code examples added follow HISE best practices and are well-documented.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。