modelscope·@laHeud/kodi-mcp-server
暂无描述。
A Model Context Protocol (MCP) server for controlling Kodi media center. This server provides both REST API and MCP protocol support, allowing seamless integration with MCP clients like Claude Desktop, n8n, and other MCP-compatible tools.
Clone the repository
git clone https://github.com/your-username/kodi-mcp-server.git
cd kodi-mcp-server
Configure environment
cp .env.example .env
# Edit .env with your Kodi configuration
Start with Docker Compose
docker-compose up -d
Verify installation
curl http://localhost:8080/health
Requirements
Install dependencies
pip install -r requirements.txt
Configure environment
export KODI_HOST=192.168.1.100
export KODI_PORT=8080
export KODI_USERNAME=kodi
export KODI_PASSWORD=your_password
export KODI_DOWNLOADS_PATH=/path/to/downloads
Run the server
python -m src.server
| Variable | Description | Default | Required |
|---|---|---|---|
KODI_HOST | Kodi server IP address | localhost | Yes |
KODI_PORT | Kodi JSON-RPC port | 8080 | Yes |
KODI_USERNAME | Kodi username | - | Yes |
KODI_PASSWORD | Kodi password | - | Yes |
KODI_DOWNLOADS_PATH | Path to downloads folder | - | Yes |
SERVER_HOST | MCP server bind address | 0.0.0.0 | No |
SERVER_PORT | MCP server port | 8080 | No |
MCP_SERVER_NAME | MCP server identifier | kodi-controller | No |
LOG_LEVEL | Logging level | INFO | No |
Enable JSON-RPC in Kodi
Configure Downloads Path
/storage/downloads/ or /var/media/Files.GetDirectory in Kodi JSON-RPCget_now_playing - Get currently playing media informationplayer_play_pause - Toggle play/pauseplayer_stop - Stop playbookset_volume - Set volume level (0-100)navigate_menu - Navigate Kodi interface (up/down/left/right/select/back)search_movies - Search movies in Kodi librarylist_recent_movies - List recently added movieslist_tv_shows - List all TV showsplay_movie - Play movie by library IDplay_episode - Play TV show episodeget_library_stats - Get library statisticsscan_library - Trigger library scanlist_downloads - List video files in downloads directorysearch_downloads - Search downloads by filenameplay_file - Play video file by pathfind_and_play - Smart search with automatic best-match playback{
"tool": "find_and_play",
"arguments": {
"query": "avengers",
"auto_play": true
}
}
# Search and play the best matching file
curl -X POST http://localhost:8080/tools/find_and_play \
-H "Content-Type: application/json" \
-d '{"params": {"query": "batman", "auto_play": true}}'
# List recent movies
curl -X POST http://localhost:8080/tools/list_recent_movies \
-H "Content-Type: application/json" \
-d '{"params": {"limit": 10}}'
# Control playback
curl -X POST http://localhost:8080/tools/player_play_pause \
-H "Content-Type: application/json" \
-d '{}'
# Initialize connection
curl -X POST http://localhost:8080/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "initialize", "id": 1}'
# List available tools
curl -X POST http://localhost:8080/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "tools/list", "id": 2}'
# Execute tool
curl -X POST http://localhost:8080/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "find_and_play",
"arguments": {"query": "matrix", "auto_play": true}
},
"id": 3
}'
http://your-server:8080Add to your Claude Desktop MCP configuration:
{
"mcpServers": {
"kodi-controller": {
"command": "docker",
"args": ["exec", "kodi-mcp-server", "python", "-m", "src.pure_mcp_server"],
"env": {}
}
}
}
The find_and_play tool uses an intelligent scoring algorithm:
用于哔哩哔哩API的MCP服务器,支持视频搜索、用户内容获取等多种操作,适用于哔哩哔哩内容管理和数据分析场景。
福昕PDF服务API提供了一个基于云的REST API,允许通过HTTP客户端处理PDF文件。它提供了丰富的功能,适合集成到各种应用程序中。 📌 主要特性: PDF创建与转换 从Word、Excel和PowerPoint等格式创建PDF文件。 将PDF文件转换为其他格式,包括HTML、Word和图像。 PDF合并与拆分 将多个PDF文件合并成一个文档。 将单个PDF文件拆分成多个文档。 PDF压缩与优化 通过图像压缩、文档展平和线性化来减小文件大小。 PDF安全 支持密码保护、权限控制和高级加密以确保文档安全。 如何快速与MCP(多功能云平台)集成? 📖 集成文档: 服务API集成指南: https://cloudapi.fuxinsoft.cn/zh-CN/docs/services/guide MCP初学者教程: https://cloudapi.fuxinsoft.cn/zh-CN/docs/services/mcp…
math_genie_calc是一款专注于科学计算的Python应用,提供从基础运算到复杂三角函数的多种计算功能,适合学生、科研人员等使用。
快递100 MCP Server提供快递信息查询、快递运费预估比价、快递时效查询(含发货前时效查询与在途动态时效查询)等功能。
一个用于图像和视频生成的MCP(模型上下文协议)服务器,支持BigModel AI平台上的CogView和CogVideoX模型。它提供了图像和视频生成、配置管理、异步处理、错误处理、TypeScript支持和调试工具等功能。
一键生成、修改和优化图片,让创意无限延伸。