PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversentertainment-and-mediakodi-mcp-server
返回「entertainment-and-media」

kodi-mcp-server

modelscope·@laHeud/kodi-mcp-server

entertainment-and-media0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

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.

Features

Core Kodi Controls

  • Player Control: Play, pause, stop, volume control
  • Navigation: Menu navigation (up, down, left, right, select, back)
  • Library Management: View library statistics, scan library
  • Movie Operations: Search movies, list recent movies, play by ID
  • TV Show Operations: List TV shows, play episodes

Smart Downloads Management

  • List Downloads: Browse video files in download directory
  • Search Downloads: Find files by name (case-insensitive)
  • Smart Find & Play: Intelligent search with automatic playback of best match
  • Direct File Play: Play any video file by path

Protocol Support

  • REST API: Direct HTTP endpoints for easy integration
  • MCP Protocol: Full Model Context Protocol support
  • Server-Sent Events: Real-time event streaming
  • WebSocket: Bidirectional communication support

Quick Start

Using Docker (Recommended)

  1. Clone the repository

    git clone https://github.com/your-username/kodi-mcp-server.git
    cd kodi-mcp-server
    
  2. Configure environment

    cp .env.example .env
    # Edit .env with your Kodi configuration
    
  3. Start with Docker Compose

    docker-compose up -d
    
  4. Verify installation

    curl http://localhost:8080/health
    

Manual Installation

  1. Requirements

    • Python 3.11+
    • Kodi with JSON-RPC enabled
    • Network access to Kodi instance
  2. Install dependencies

    pip install -r requirements.txt
    
  3. 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
    
  4. Run the server

    python -m src.server
    

Configuration

Environment Variables

VariableDescriptionDefaultRequired
KODI_HOSTKodi server IP addresslocalhostYes
KODI_PORTKodi JSON-RPC port8080Yes
KODI_USERNAMEKodi username-Yes
KODI_PASSWORDKodi password-Yes
KODI_DOWNLOADS_PATHPath to downloads folder-Yes
SERVER_HOSTMCP server bind address0.0.0.0No
SERVER_PORTMCP server port8080No
MCP_SERVER_NAMEMCP server identifierkodi-controllerNo
LOG_LEVELLogging levelINFONo

Kodi Setup

  1. Enable JSON-RPC in Kodi

    • Settings Services Control
    • Enable "Allow remote control via HTTP"
    • Set username and password
    • Note the port (usually 8080)
  2. Configure Downloads Path

    • Use the actual path as seen by Kodi
    • For Docker Kodi: usually /storage/downloads/ or /var/media/
    • Test with Files.GetDirectory in Kodi JSON-RPC

Available Tools

Player Control

  • get_now_playing - Get currently playing media information
  • player_play_pause - Toggle play/pause
  • player_stop - Stop playbook
  • set_volume - Set volume level (0-100)

Navigation

  • navigate_menu - Navigate Kodi interface (up/down/left/right/select/back)

Library Operations

  • search_movies - Search movies in Kodi library
  • list_recent_movies - List recently added movies
  • list_tv_shows - List all TV shows
  • play_movie - Play movie by library ID
  • play_episode - Play TV show episode
  • get_library_stats - Get library statistics
  • scan_library - Trigger library scan

Downloads Management

  • list_downloads - List video files in downloads directory
  • search_downloads - Search downloads by filename
  • play_file - Play video file by path
  • find_and_play - Smart search with automatic best-match playback

Usage Examples

With MCP Client (Claude Desktop, n8n)

{
  "tool": "find_and_play",
  "arguments": {
    "query": "avengers",
    "auto_play": true
  }
}

REST API

# 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 '{}'

MCP JSON-RPC Protocol

# 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
  }'

Integration

n8n MCP Client

  1. Add MCP Client node in n8n
  2. Configure connection:
    • Transport: Server-Sent Events
    • URL: http://your-server:8080
  3. Use available tools in your workflows

Claude Desktop

Add to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "kodi-controller": {
      "command": "docker",
      "args": ["exec", "kodi-mcp-server", "python", "-m", "src.pure_mcp_server"],
      "env": {}
    }
  }
}

Smart Search Algorithm

The find_and_play tool uses an intelligent scoring algorithm:

  • ** Position Matching**: Terms at the beginning get higher scores -…

相关 MCP Servers(来自「entertainment-and-media」)

哔哩哔哩API服务器

用于哔哩哔哩API的MCP服务器,支持视频搜索、用户内容获取等多种操作,适用于哔哩哔哩内容管理和数据分析场景。

myalone/bilibili

福昕Cloud-API

福昕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…

@Foxit/mcp-server-foxit-cloudapi

科学计算工具

math_genie_calc是一款专注于科学计算的Python应用,提供从基础运算到复杂三角函数的多种计算功能,适合学生、科研人员等使用。

myalone/math_genie_calc

快递100 MCP Server

快递100 MCP Server提供快递信息查询、快递运费预估比价、快递时效查询(含发货前时效查询与在途动态时效查询)等功能。

kuaidi100/kuaidi100-mcp

免费文字生成图像或视频MCP工具

一个用于图像和视频生成的MCP(模型上下文协议)服务器,支持BigModel AI平台上的CogView和CogVideoX模型。它提供了图像和视频生成、配置管理、异步处理、错误处理、TypeScript支持和调试工具等功能。

seostar/image-video-generation-mcp

生成图片

一键生成、修改和优化图片,让创意无限延伸。

dingtalk/Generate-image

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/laheud-kodi-mcp-server/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

git clone https://github.com/your-username/kodi-mcp-server.git cd kodi-mcp-server

基本信息

分类
entertainment-and-media / multimedia-processing / app-automation
运行方式
No
许可证
MIT License
详情文件
laheud-kodi-mcp-server.md