Skip to main content

MCP server for the Clearview Politics API — real-time, nonpartisan political news for AI agents

Project description

Clearview Politics MCP Server

An MCP (Model Context Protocol) server that exposes the Clearview Politics API as tools for AI agents. Connect any MCP-compatible client — Claude Desktop, Cursor, Windsurf, or your own agent — to real-time, nonpartisan political news synthesized from 26+ sources, complete with bias auditing, cross-source analysis, deep story analysis with falsifiable predictions, legislation tracking, and an on-demand political analyst you can query in natural language.


Installation

From source (development)

cd /path/to/clearview-politics/mcp-server
pip install .

This installs the clearview-mcp CLI entry point.

From PyPI (when published)

pip install clearview-politics-mcp

Configuration

Required

Variable Description
CLEARVIEW_API_KEY Your Clearview Politics API key. Get one at clearviewpolitics.com/api.

Optional

Variable Default Description
CLEARVIEW_BASE_URL https://clearviewpolitics.com Override the API base URL (useful for staging environments).

Claude Desktop

Add the following to your claude_desktop_config.json (usually at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "clearview-politics": {
      "command": "clearview-mcp",
      "env": {
        "CLEARVIEW_API_KEY": "your_key_here"
      }
    }
  }
}

Restart Claude Desktop after saving.


Cursor

In Cursor, open Settings → MCP and add a new server entry:

{
  "clearview-politics": {
    "command": "clearview-mcp",
    "env": {
      "CLEARVIEW_API_KEY": "your_key_here"
    }
  }
}

Other MCP Clients

Any client that supports the MCP stdio transport can use this server. Point your client at the clearview-mcp command and pass CLEARVIEW_API_KEY in the environment.

If you need to run it directly without the installed entry point:

CLEARVIEW_API_KEY=your_key_here python -m clearview_mcp.server

Available Tools

get_daily_brief

Get today's Daily Brief — an AI-synthesized editorial overview, key bullet points, and story summaries pulled from 26+ nonpartisan sources. No input required.


list_stories

List the latest synthesized political stories. Stories are cross-referenced across multiple outlets and bias-audited before publication.

Parameters:

Name Type Description
category string (optional) Filter by category: congress, white_house, scotus, economy, or foreign_policy
page integer (optional, 1–10) Page number. Default: 1
per_page integer (optional, 1–50) Results per page. Default: 10

get_story

Retrieve the full details of a specific story — summary, analysis, multiple political perspectives, ripple effects and downstream implications, and a full source breakdown with bias ratings.

Parameters:

Name Type Description
story_id string (required) UUID of the story (from list_stories)

get_story_analysis

Deep-dive political analysis for a story. Returns historical context, power dynamics between key actors, and falsifiable predictions with confidence levels and timeframes.

Parameters:

Name Type Description
story_id string (required) UUID of the story to analyze

search_legislation

Search tracked federal and state legislation. Returns matching bills with current status, sponsor information, impact scores, and AI-generated plain-language impact analysis.

Parameters:

Name Type Description
q string (optional) Search query — bill title, number, or keywords
level string (optional) federal or state
page integer (optional) Page number. Default: 1

ask_analyst

Ask the Clearview Analyst a question about current political developments. The analyst has full access to all stories from the past 7 days and answers in a nonpartisan, fact-based style. Supports multi-turn conversations via an optional session_id.

Parameters:

Name Type Description
question string (required) Your question for the analyst
session_id string (optional) Reuse a session ID to continue a prior conversation

Rate Limits

Rate limits depend on your API plan. The server does not implement client-side throttling — if you hit a rate limit, the API will return a 429 status and the tool will surface a clear error message. Check your plan details at clearviewpolitics.com/api.


Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clearview_politics_mcp-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clearview_politics_mcp-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file clearview_politics_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: clearview_politics_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for clearview_politics_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 692fc56e94b7cf554a423cd6e7f92200f60e0d678ce03a6b95ad16e8384263be
MD5 623aa86a3deae4a1fccc9f0d86a990b7
BLAKE2b-256 7b3598f611ae576af63f5e8efeab16c79052e71c7ab30e9e2ffe39eb94553f77

See more details on using hashes here.

File details

Details for the file clearview_politics_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clearview_politics_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f3ed8f97921d875f0d8081d4e73994912bbd9105c53c645062cb9da85e90303
MD5 50df5c3cb113af926f49b697ddf3cf6c
BLAKE2b-256 ef398bce0933518607edff6837ca9efe32552b942f4025549e38dfac9b6868b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page