Article Scraper MCP
A Model Context Protocol (MCP) server that fetches article data from URLs using newspaper3k.
Features
- Extract article title, text, author, and publication date
- Robust error handling and URL validation
- Structured data output
- Built with FastMCP for easy integration
Installation
Install directly from PyPI:
uvx article-scraper-mcp
Usage
Add to your MCP client configuration:
{
"mcpServers": {
"article-scraper": {
"command": "uvx",
"args": ["article-scraper-mcp"]
}
}
}
API
fetch_article(url: str) -> dict[str, Any]
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
Requirements
- Python 3.11+
- newspaper3k
- requests
- loguru
- mcp[cli]
License
MIT
Metadata
Release files for article-scraper-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| article_scraper_mcp-1.0.0.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| article_scraper_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / article_scraper_mcp-1.0.0.tar.gz
| Download URL | article_scraper_mcp-1.0.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8472faf8b417bb922458b1fb0b68f5c488b476ab932092227656c38a744d37ef
|
|
BLAKE2b-256 checksum How to use checksums |
30f1d87ac63cc6e0b433a5d5c062cef230cf07f55b637d1ad6eaa1b9d0c384aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.16
|
Release files / article_scraper_mcp-1.0.0-py3-none-any.whl
| Download URL | article_scraper_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a5eb3fb01b6a8eaf8aa24604ed34de973768012a1aab9227f20542b73e5d87b
|
|
BLAKE2b-256 checksum How to use checksums |
4c327b43817cf157701438f0815339c755182690a3f05a9be1ccb9ae98b6ac64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.16
|
Security for article-scraper-mcp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.