@striderlabs/mcp-peacock
v1.0.0
Published
MCP server connector for Peacock (NBC streaming service)
Downloads
8
Maintainers
Readme
@striderlabs/mcp-peacock
MCP (Model Context Protocol) server connector for Peacock (NBC streaming service). Enables AI agents to interact with Peacock using browser automation via Playwright.
Features
- Search Content — Search movies, TV shows, sports, and news
- Content Details — Get detailed info about any title (description, rating, genre, episodes)
- Watchlist — View, add, and remove items from your watchlist
- Continue Watching — Access your continue watching list
- Live TV — Browse available live TV channels
Installation
npm install @striderlabs/mcp-peacockPlaywright requires browser binaries:
npx playwright install chromiumUsage
As an MCP Server
Add to your MCP client configuration:
{
"mcpServers": {
"peacock": {
"command": "npx",
"args": ["@striderlabs/mcp-peacock"]
}
}
}Available Tools
| Tool | Description | Auth Required |
|------|-------------|---------------|
| peacock_login | Login with email/password | No |
| peacock_search | Search content by query and type | No |
| peacock_get_content_details | Get details for a content URL | No |
| peacock_get_watchlist | View your watchlist | Yes |
| peacock_add_to_watchlist | Add content to watchlist | Yes |
| peacock_remove_from_watchlist | Remove content from watchlist | Yes |
| peacock_get_continue_watching | Get continue watching list | Yes |
| peacock_get_live_channels | List live TV channels | No |
Tool Examples
Search for content:
{
"tool": "peacock_search",
"arguments": {
"query": "The Office",
"content_type": "show"
}
}Get content details:
{
"tool": "peacock_get_content_details",
"arguments": {
"url": "https://www.peacocktv.com/watch/asset/tv/the-office/7741901043886570112"
}
}Login (required for personalized features):
{
"tool": "peacock_login",
"arguments": {
"email": "[email protected]",
"password": "yourpassword"
}
}Architecture
This MCP server uses Playwright to automate a headless Chromium browser to interact with the Peacock website. The browser session is maintained across tool calls for efficiency.
Session Management
- A single browser session is reused across all tool calls
- The session is automatically cleaned up on process exit (SIGINT/SIGTERM)
- Login state persists for the duration of the process
Requirements
- Node.js 18+
- Chromium (installed via
npx playwright install chromium)
Development
# Install dependencies
npm install
# Build
npm run build
# Run
npm startLicense
MIT
