Skip to main content

MCP server for querying the CooNet Croatian news database — articles, entities, and trends

Project description

coonet-mcp

MCP server for querying the CooNet Croatian news database. Exposes 8 tools over the Model Context Protocol, allowing any MCP-compatible LLM to search articles, entities, and trends using natural language.

Install

pip install coonet-mcp

Setup

All you need is a PostgreSQL connection string to a CooNet database.

Claude Code

Place .mcp.json at your project root:

{
  "mcpServers": {
    "coonet": {
      "command": "coonet-mcp",
      "env": {
        "DATABASE_URL": "postgresql+asyncpg://coonet:coonet_dev@localhost:5432/coonet"
      }
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "coonet": {
      "command": "coonet-mcp",
      "env": {
        "DATABASE_URL": "postgresql+asyncpg://coonet:coonet_dev@localhost:5432/coonet"
      }
    }
  }
}

With uvx (no install needed)

{
  "mcpServers": {
    "coonet": {
      "command": "uvx",
      "args": ["coonet-mcp"],
      "env": {
        "DATABASE_URL": "postgresql+asyncpg://coonet:coonet_dev@localhost:5432/coonet"
      }
    }
  }
}

Available tools

Tool Description
get_stats() Database statistics: total articles, portals, entity count, date range
list_portals() All news portals with IDs and status
list_categories() All distinct article categories
search_articles(...) Keyword search with portal, category, date filters
get_article(id) Full article content by ID with optional NER entities
get_entity_mentions(...) Most frequently mentioned entities (PER/ORG/LOC)
get_entity_co_occurrences(...) Entities that co-occur with a given entity
get_articles_by_entity(...) Articles mentioning a specific entity via NER tags

Requirements

  • Python 3.11+
  • A reachable PostgreSQL database with the CooNet schema

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

coonet_mcp-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for coonet_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a52ec40a388db5059374d28fe3e287bde5eac087d0bbff7f25bb9bac65b82db7
MD5 14422a9b4b6d655309473fc93a556ec4
BLAKE2b-256 20f2a877b27a89fcdbdf8ac921d6fd06959df565af8b5b09d77d1afed92b6f79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coonet_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for coonet_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95b74117fb6a5f153ec7d0c9436d785698a6bc811f5822ab0d9b0e5a0ee80668
MD5 7003337b2874833275929e74ccc105a4
BLAKE2b-256 18503c0de60b282b59275420684e697717aa3c3b3573737a53272db9453acce8

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