Skip to main content
Glama
geeknews-mcp-server

geeknews-mcp-server

by the0807

GeekNews MCP Server

This project is a Model Context Protocol (MCP) server that fetches articles from GeekNews . It is implemented in Python and uses BeautifulSoup to perform web scraping.

function

tool1

tool2

example

example

Tools

  • get_articles tool: Ability to fetch articles from GeekNews

    • You can specify the article type (top, new, ask, show) and the number of articles to return.

    • Each response contains title, URL, points, author, time, number of comments, and ranking information.

  • get_weekly_news tool: Ability to fetch weekly news from GeekNews

    • You can specify a specific weekly news ID or retrieve the most recent weekly news.

    • Provides information such as the title, number, ID, content, URL, and list of items of weekly news.

    • Each item contains a title, URL, and ranking information.

Related MCP server: Mozilla Readability Parser MCP Server

How to use

  • Installation using Smithery

    ๐Ÿš€ geeknews-mcp-server

  • Add server information to the MCP settings file

    {
    "mcpServers": {
       "geeknews-mcp-server": {
          "command": "npx",
          "args": [
          "-y",
          "@smithery/cli@latest",
          "run",
          "@the0807/geeknews-mcp-server",
          "--key",
          "smithery์—์„œ ๋ฐœ๊ธ‰ ๋ฐ›์€ ํ‚ค"
          ]
       }
    }
    }

How to install locally

  1. Git Clone

    git clone https://github.com/the0807/GeekNews-MCP-Server
    cd GeekNews-MCP-Server
  2. Setting the environment with uv

    uv sync
  3. Running a virtual environment

    uv venv
    source .venv/bin/activate
  4. Testing your server with MCP Inspector

    uv run mcp
    mcp dev main.py
    
    # ํ„ฐ๋ฏธ๋„์— ๋‚˜์˜ค๋Š” URL(MCP Inspector)๋กœ ์ ‘์†ํ•˜์—ฌ ์„œ๋ฒ„ ํ…Œ์ŠคํŠธ

Code Structure

  • src/models.py : Define a data class that stores article information.

  • src/parser.py : Parses HTML from the GeekNews website to extract article information.

  • src/client.py : HTTP client that fetches data from the GeekNews website.

  • src/config.py : Define settings and constants

  • src/server.py : MCP server implementation

  • main.py : Server execution entry point

[!Note]

  • This server relies on the HTML structure of the GeekNews website. If the website structure changes, you may need to update your parsing logic.

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