Skip to main content
Glama
geeknews-mcp-server

geeknews-mcp-server

by the0807

GeekNews MCP Server

このプロジェクトは、 GeekNewsから記事をインポートするModel Context Protocol(MCP)サーバーです。 Pythonとして実装されており、BeautifulSoupを使用してWebスクレイピングを実行します。

機能

tool1

tool2

例

例

ツール(Tools)

  • get_articlesツール:GeekNewsから記事をインポートする機能

    • 記事の種類(top、new、ask、show)と返す記事の数を指定できます。

    • 各回答には、件名、URL、ポイント、作成者、時間、コメント数、ランキング情報が含まれています

  • get_weekly_newsツール:GeekNewsから毎週ニュースを取得する機能

    • 特定の週間ニュースIDを指定したり、最新の週間ニュースを取得したりできます

    • 週刊ニュースのタイトル、番号、ID、コンテンツ、URL、アイテムリストなどの情報を提供

    • 各アイテムにはタイトル、URL、ランキング情報が含まれています

Related MCP server: Mozilla Readability Parser MCP Server

使い方

  • Smitheryを使用したインストール

    🚀 geeknews-mcp-server

  • MCP設定ファイルにサーバー情報を追加する

    {
    "mcpServers": {
       "geeknews-mcp-server": {
          "command": "npx",
          "args": [
          "-y",
          "@smithery/cli@latest",
          "run",
          "@the0807/geeknews-mcp-server",
          "--key",
          "smithery에서 발급 받은 키"
          ]
       }
    }
    }

ローカルインストール方法

  1. Git Clone

    git clone https://github.com/the0807/GeekNews-MCP-Server
    cd GeekNews-MCP-Server
  2. uvによる環境設定

    uv sync
  3. 仮想環境の実行

    uv venv
    source .venv/bin/activate
  4. MCP Inspectorでサーバーをテストする

    uv run mcp
    mcp dev main.py
    
    # 터미널에 나오는 URL(MCP Inspector)로 접속하여 서버 테스트

コード構造

  • src/models.py :記事情報を格納するデータクラスの定義

  • src/parser.py :GeekNewsウェブサイトのHTMLを解析して記事情報を抽出する

  • src/client.py :GeekNewsウェブサイトからデータを取得するHTTPクライアント

  • src/config.py :設定と定数の定義

  • src/server.py : MCPサーバーの実装

  • main.py : サーバー実行エントリポイント

[!Note]

  • このサーバーはGeekNews WebサイトのHTML構造に依存しています。 Webサイトの構造が変更された場合は、解析ロジックを更新する必要があります。

Available Tools

2 tools
get_articlesA
        GeekNews에서 아티클을 가져오는 도구
        
        Args:
            type: 아티클 유형 (top, new, ask, show)
            limit: 반환할 아티클 수 (최대 30)
        
        Returns:
            List[Dict[str, Any]]: 아티클 목록
            
        Raises:
            ValueError: 유효하지 않은 아티클 유형이 지정된 경우
        

Inputs: type, limit.

get_weekly_newsB
        GeekNews에서 주간 뉴스를 가져오는 도구
        
        Args:
            weekly_id: 주간 뉴스 ID (빈 문자열인 경우 가장 최근 주간 뉴스를 가져옴)
            
        Returns:
            Dict[str, Any]: 주간 뉴스 정보
        

Inputs: weekly_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: get_articles retrieves articles by type (top, new, ask, show) with a limit parameter, while get_weekly_news fetches weekly news by ID or the most recent one. There is no overlap in functionality or ambiguity between them.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun naming pattern (get_articles and get_weekly_news), using snake_case throughout. The naming is predictable and readable without any deviations or mixed conventions.

    Tool Count2/5

    With only 2 tools, the server feels thin and under-scoped for a news domain. While the tools cover basic retrieval, there are likely missing operations (e.g., searching, filtering, or interacting with articles) that would enhance functionality, making the count too low for comprehensive coverage.

    Completeness2/5

    The tool surface is severely incomplete for a news server. It only provides read operations (get_articles and get_weekly_news) with no support for creating, updating, deleting, or searching articles. This lack of CRUD/lifecycle coverage will limit agent capabilities and cause failures in more complex workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides tools for searching and fetching information from Hacker News.
      4
      76
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Python implementation of an MCP server that extracts webpage content, removes ads and non-essential elements, and transforms it into clean, LLM-optimized Markdown.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Python-based MCP server that aggregates real-time trending topics and news from over 30 sources including social media, technology, and finance platforms. It enables AI applications to retrieve the latest hot searches and news from major services like Weibo, Baidu, and IT Home through a unified interface.
      33
      MIT