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.1.tar.gz (9.8 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.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clearview_politics_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 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.1.tar.gz
Algorithm Hash digest
SHA256 90144858a8e478d5b6a2e49215945882442d5884fecd6257abb4f6157f6eab75
MD5 acc445a122a218f23bf701ef746cb69b
BLAKE2b-256 60a009d7b046c338eafed3d8ce8c0e55db5b0f9df0a26e2613345f7bc165b2f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clearview_politics_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe2dbea760292d8782dc867b5d59203f2ac956f721abd90608ff9bb662eedcf4
MD5 e75a175df3cae4d4a207715acdcae705
BLAKE2b-256 f801b1cf43d3670076daed637ecbc9787cc16c7bda29814c35ba139a0ed577fe

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