1. Conduid
  2. Agents
  3. Newslens
MCP server · Agents

Newslens

Utility to use News-Summarization model as a function, tool, MCP or A2A server

34Low

Scored 5 months ago · breakdown

About Newslens

Newslens is an MCP server in the Agents category: utility to use News-Summarization model as a function, tool, MCP or A2A server.

Install

From source
git clone https://github.com/Arnab-cloud/newslens

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Newslens

Powered by Claude · Grounded in docs

I know everything about Newslens. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

NewsLens

NewsLens is a modular Python SDK designed for production-grade news summarization. It provides a unified interface for model inference, supporting local execution, remote API calls, and mock engines for development.

Installation

NewsLens supports optional dependencies based on your specific requirements.

For standard usage:

pip install newslens

To include specific capabilities, use the following extras:

# For local GPU inference
pip install "newslens[local]"

# For MCP server support
pip install "newslens[mcp]"

# For all features
pip install "newslens[all]"

Usage

The package utilizes a strategy pattern, allowing you to swap inference backends without modifying your application logic.

Programmatic API

You can initialize the NewsLens class by injecting a specific engine.

from newslens.core.model import NewsLens
from newslens.core.engines import RemoteEngine

# Configure the engine
engine = RemoteEngine(api_url="https://api.yourdomain.com")
lens = NewsLens(engine=engine)

# Summarize a single article
summary = lens.summarize("Your article text here.")

# Summarize multiple articles concurrently
summaries = await lens.asummarize_batch(["Article 1", "Article 2"])

FastAPI Server

The package includes a production-ready API server with lifespan management.

from fastapi import FastAPI
from newslens.server.api import app
# The server automatically manages the thread pool and model lifecycle

Agent Integration

NewsLens can be deployed as an MCP server to provide summarization capabilities to AI agents.

from newslens.agents.mcp import create_mcp_server
from newslens.core.model import NewsLens

lens = NewsLens(engine=my_engine)
mcp_server = create_mcp_server(lens)
mcp_server.run(transport="stdio")

Configuration

The SDK uses pydantic-settings. You can configure the BASE_MODEL, ADAPTER_PATH, and MAX_WORKERS via environment variables or a configuration object.

Testing

The package includes a comprehensive test suite. Ensure you have installed the dev dependencies:

pip install "newslens[all]"
pytest

License

This project is licensed under the MIT License

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Newslens

How do I install Newslens?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Newslens safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Newslens still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.