Metadata-Version: 2.4
Name: barie-media-watcher-mcp
Version: 0.1.0
Summary: Media Watcher MCP Server for performing sentiment analysis and media monitoring via the Model Context Protocol
Author-email: Barie <support@barie.ai>
License: MIT
Keywords: mcp,media,model-context-protocol,news,sentiment,watcher,youtube
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Requires-Dist: httpx>=0.25.0
Requires-Dist: mcp>=0.9.0
Provides-Extra: dev
Requires-Dist: black>=23.0.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# Media Watcher MCP Server

An MCP server implementation for [Media Watcher](https://mediawatcher.ai/), allowing you to search news and YouTube content for sentiment analysis and monitoring.

## Installation

```bash
pip install .
```

## Configuration

You need a Media Watcher API key to use this server.

## Usage

### Running the Server

You can run the server directly:

```bash
python -m media_watcher_mcp.server --api-key YOUR_API_KEY
```

Or using the installed script:

```bash
barie-media-watcher-mcp --api-key YOUR_API_KEY
```

### Tools

#### `media_watcher_search`

Search for news or YouTube content.

- `query` (string, required): The search term (e.g., "Apple Inc").
- `source` (string, optional): "news" (default) or "youtube".
- `country` (string, optional): ISO 3166-1 alpha-2 country code (e.g., "US").

Example:
```json
{
  "query": "Tesla",
  "source": "news",
  "country": "US"
}
```

## Structure

- `media_watcher_mcp/client.py`: Async client for Media Watcher API handling polling logic.
- `media_watcher_mcp/server.py`: MCP server implementation.
