JG

jbenton/guardian-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

20 stars 2 forks 품질 64 트렌드 10MIT

MCP는 가디언의 아카이브에 LLM을 연결하는

개요

MCP 서버는 모든 기사의 전체 텍스트를 포함하여 가디언의 아카이브 (1999 년 이후)에 LLM을 연결 — 그 중 1.9 백만. 실시간 헤드 라인, 저널리즘 분석 및 과거 연구에 유용한. 여기에 하나를 얻을 수 있습니다: https://open-platform.theguardian.com/access/ Guardian은 최대 1개의 통화/초 및 500개의 통화/일을 포함하여 아카이브의 비 상업적인 사용을 위한 관대한 API 접근을 제안합니다. (완전 이용 약관 참조) 상업적인 사용은 다른 면허를 요구합니다.) guardian search: 기사에 대한 아카이브 검색 API 응답의 크기를 결정하기 위해 thedetail level 매개 변수를 사용하여 성능 최적화 : 최소 (머리 전용), 표준 (헤드 라인, summaries 및 metadata), 또는 전체 (모든 콘텐츠, 전체 기사 텍스트 포함). guardian get article: 개별 기사 검색 guardian search tags: 가디언의 50,000 플러스 손으로 할당 된 태그를 검색 guardian find related: 기사와 비슷한 기사를 찾습니다 (공유 태그를 통해)

개요(AI 번역)

MCP 서버는 모든 기사의 전체 텍스트를 포함하여 가디언의 아카이브 (1999 년 이후)에 LLM을 연결 — 그 중 1.9 백만. 실시간 헤드 라인, 저널리즘 분석 및 과거 연구에 유용한.

설치

** Guardian Open Platform API 키가 필요합니다. ** 여기에 하나를 얻을 수 있습니다: https://open-platform.theguardian.com/access/

Guardian은 최대 1개의 통화/초 및 500개의 통화/일을 포함하여 아카이브의 non-commercial 사용에 대한 관대한 API 액세스를 제공합니다. (완전 이용 약관 참조) 상업적인 사용은 다른 면허를 요구합니다.)

** 설치:**

**Sample MCP 클라이언트 구성: **

공구 참고

guardian_search: 기사 검색

detail_level] 매개변수를 사용하여 API 응답의 크기를 결정하고 성능을 최적화하십시오. minimal (headlines only), standard] (headlines, summaries 및 metadata) 또는 [[T5] (전체 문서 텍스트를 포함한 모든 내용).

guardian_get_article: 개별 기사 검색

guardian_search_tags: 가디언의 50,000 플러스 손으로 할당된 태그를 검색

guardian_find_related: 기사와 비슷한 기사를 찾아 (공유 태그를 통해)

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Guardian MCP Server

An MCP server that connects an LLM to the archives (since 1999) of The Guardian, including the full text of all articles — more than 1.9 million of them. Useful for real-time headlines, journalism analysis, and historical research.

Installation

A Guardian Open Platform API key is required. You can get one here: https://open-platform.theguardian.com/access/

The Guardian offers generous API access for non-commercial use of the archives, including up to 1 call/second and 500 calls/day. (See the full Terms & Conditions. Commercial use requires a different license.)

To install:

npx guardian-mcp-server

Sample MCP client configuration:

{
  "mcpServers": {
    "guardian": {
      "command": "npx",
      "args": ["guardian-mcp-server"],
      "env": {
        "GUARDIAN_API_KEY": "your-key-here"
      }
    }
  }
}

Tool reference

guardian_search: search the archive for articles

Use thedetail_level parameter to determine the size of the API response and optimize performance: minimal (headlines only), standard (headlines, summaries, and metadata), or full (all content, including full article text).

{
  "query": "climate change",
  "section": "environment", 
  "detail_level": "minimal",
  "from_date": "2024-01-01",
  "order_by": "newest"
}

guardian_get_article: retrieve individual articles

{
  "article_id": "https://www.theguardian.com/politics/2024/dec/01/example", 
  "truncate": false  // full content by default
}

guardian_search_tags: search through The Guardian’s 50,000-plus hand-assigned tags

guardian_find_related: find articles similar to an article (via shared tags)

guardian_get_article_tags: returns tags assigned to any article

{
  "article_id": "politics/2024/example"
}

guardian_lookback: historical search by date

guardian_content_timeline: analyze Guardian content on a particular topic over a defined period

{
  "query": "artificial intelligence",
  "from_date": "2024-01-01",
  "to_date": "2024-06-30", 
  "interval": "month"
}

guardian_top_stories_by_date: estimates editorial importance; The Guardian’s API doesn’t natively return data to differentiate between Page 1 stories and inside briefs, and this tries to hack a ranking together

{
  "date": "2016-06-24",  // Brexit referendum day
  "story_count": 5
}

guardian_topic_trends: compare multiple topics over time with correlation analysis and competitive rankings

{
  "topics": ["artificial intelligence", "climate change", "brexit"],
  "from_date": "2023-01-01",
  "to_date": "2024-12-31",
  "interval": "quarter"
}

guardian_author_profile: generate profiles of Guardian journalists and what they cover

{
GitHub에서 전체 README 보기

설치

npx guardian-mcp-server
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "guardian": { "command": "npx", "args": ["guardian-mcp-server"], "env": { "GUARDIAN_API_KEY": "your-key-here" } } } }