A Model Context Protocol (MCP) server that fetches article data from URLs using newspaper3k.
- Extract article title, text, author, and publication date
- Robust error handling and URL validation
- Structured data output
- Built with FastMCP for easy integration
Install directly from PyPI:
uvx article-scraper-mcpAdd to your MCP client configuration:
{
"mcpServers": {
"article-scraper": {
"command": "uvx",
"args": ["article-scraper-mcp"]
}
}
}Fetches and parses a news article from the given URL.
Parameters:
url: The URL of the news article to fetch
Returns: A dictionary containing:
title: Article titletext: Article content textauthor: Author name(s) (may be None)date: Publication date in ISO format (may be None)
Raises:
ValueError: If URL is invalid or article cannot be parsedrequests.RequestException: If HTTP request fails
- Python 3.11+
- newspaper3k
- requests
- loguru
- mcp[cli]
MIT