New York Timesの記事を検索できるMCPサーバーを見つけたので試してみる

New York Timesの記事を検索できるMCPサーバーを見つけたので試してみる

Clock Icon2025.04.22

こんばんは、製造ビジネステクノロジー部の夏目です。

今回はNew York Timesの記事を検索できるMCPサーバーを見つけたので試してみます。

angheljf/nyt

https://github.com/angheljf/nyt

New York TimesのDeveloper Networkで取得したAPIを使って、記事を検索できるMCPサーバーです。

過去30日の記事とはいえ、海外メディアを直接調べられるのは有用だと思います。

使ってみる

  1. New York Times Developer Networkのアカウントを作成する
  2. API Keyを発行する
  3. MCPサーバーを設定する
  4. 使ってみる

1. New York Times Developer Networkのアカウントを作成する

https://developer.nytimes.com/

New York Times Developer Networkのページにアクセスします。

db088e6d-1f94-4984-9d5b-fd6897f36dd6

右上の Sign In をクリックする。

6c2f442b-e44f-48af-8816-fd1d37262489

Create an account をクリックする。

97dd6ecf-856f-45cb-be4c-47ff1db81c01

各項目を入力する。

パスワードは下の条件を満たす必要があります。

83b02474-bb01-41b9-a8ec-8bfab41eedb0

condition (条件)と terms (規約)を確認し、チェックボックにチェックを入れます。

Create Account をクリックします。

ff7e7313-2c0b-4c33-a3a7-d44aa8e17073

確認のメールが届くのでメールボックスを確認します。

8d4cb4fa-05b9-4cc9-b693-b72928ac53a3

click here をクリックします。

16078d1b-9854-4897-a85f-d89dd2bf105e

トップページに遷移しました。

サインインしてみます。

23df9dfb-7984-4983-83f1-dbc060adab7a

サインインできました。
アカウントの作成ができました。

2. API Keyを発行します

右上の自分のメールアドレスをクリックします。

7bfccb61-94be-42fb-aa33-0603c4f0ecb2

Apps をクリックします。

b4e780ce-260e-4c8d-a0e7-140e5015420f

+ NEW APP をクリックします。

909e0d34-409b-456b-881d-594585db26e6

App Name に任意の名前を入力します。

Article Search APIEnable ボタンをクリックします。

右下の SAVE をクリックします。

c5ba4ec8-0987-48a6-bbf4-ca4551b038c7

API Keyの発行ができました。

3. MCPサーバーを設定する

今回のMCPサーバーはリポジトリをクローンして動かします。

# angheljf/nyt をクローンする
$ git clone angheljf/nyt
$ cd nyt

# TypeScriptで書かれているのでビルドする
$ npm install
$ npm run build

# buildディレクトリにトランスパイル済みのファイルがある
$ ls ./build
index.js  types.js

準備できたのでMCPサーバーを設定します。

{
  "mcpServers": {
    "new-york-times": {
      "command": "node",
      "args": ["/path/to/build/index.js"],
      "env": {
        "NYTIMES_API_KEY": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
      }
    }
  }
}

/path/to/build/index.js は先ほどトランスパイルした build/index.jsまでのフルパスを書いてください。

4. 使ってみる

af88093e-4b9c-499a-8753-e756212b9547

プロンプト

New York Timesからアメリカの政府効率化省についての記事を探してください

結果

こんにちは。「アメリカの政府効率化省」に関する記事をNew York Timesから検索したいとのことですね。早速検索してみましょう。

search_articles
リクエスト
{
  `keyword`: `government efficiency department`
}
レスポンス
[
  {
    "title": "G.O.P. Leader Asks Attorney General Pam Bondi to Prosecute Andrew Cuomo",
    "abstract": "A Republican House chairman renewed a request to the Justice Department to prosecute Mr. Cuomo for allegedly making false statements to Congress.",
    "url": "https://www.nytimes.com/2025/04/21/nyregion/cuomo-criminal-referral-covid.html",
    "publishedDate": "2025-04-21T23:27:09Z",
    "author": "By Nicholas Fandos"
  },
  {
    "title": "White House Birthrate Boosters See an Ally in Musk",
    "abstract": "Elon Musk talks a lot about the birthrate. The Trump administration is looking for ways to raise it.",
    "url": "https://www.nytimes.com/2025/04/21/us/politics/elon-musk-trump-birthrate.html",
    "publishedDate": "2025-04-21T23:18:03Z",
    "author": "By Jess Bidgood"
  },
  {
    "title": "Mahmoud Khalil’s Wife Gives Birth as ICE Bars Him From Being There",
    "abstract": "Mr. Khalil, a permanent resident detained in Louisiana, had requested a monitored furlough for the birth. His request was denied in less than an hour.",
    "url": "https://www.nytimes.com/2025/04/21/nyregion/mahmoud-khalil-denied-baby-birth.html",
    "publishedDate": "2025-04-21T23:08:58Z",
    "author": "By Jonah E. Bromwich"
  },
  {
    "title": "An Easter Bunny, Colorful Eggs and a Second Signal Group Chat",
    "abstract": "At the annual White House Easter Egg Roll, President Trump and Defense Secretary Pete Hegseth could not avoid the news about another chat that involved sensitive details about forthcoming military strikes.",
    "url": "https://www.nytimes.com/2025/04/21/us/politics/trump-easter-egg-roll-signal-group-chat.html",
    "publishedDate": "2025-04-21T23:04:50Z",
    "author": "By Aishvarya Kavi"
  },
  {
    "title": "Herbert J. Gans, 97, Dies; Upended Myths on Urban and Suburban Life",
    "abstract": "A leading sociologist, he explored American society up close — living in a Levittown at one point — to gain insight into issues of race, class, the media and even the Yankees.",
    "url": "https://www.nytimes.com/2025/04/21/books/herbert-j-gans-dead.html",
    "publishedDate": "2025-04-21T22:37:33Z",
    "author": "By Robert D. McFadden"
  },
  {
    "title": "In New Trial, Palin Says New York Times Editorial Damaged Her Reputation",
    "abstract": "Closing arguments in the libel case are expected on Tuesday, after which the nine jurors will begin deliberations.",
    "url": "https://www.nytimes.com/2025/04/21/business/media/sarah-palin-new-york-times-trial.html",
    "publishedDate": "2025-04-21T22:29:03Z",
    "author": "By Katie Robertson"
  },
  {
    "title": "The World Mourned Pope Francis",
    "abstract": "Also, the U.S. asked a judge to break up Google. Here’s the latest at the end of Monday.",
    "url": "https://www.nytimes.com/2025/04/21/briefing/pope-francis-dead-google-antitrust-hearing.html",
    "publishedDate": "2025-04-21T22:05:18Z",
    "author": "By Matthew Cullen"
  },
  {
    "title": "Watchdog Group Asks Judge to Preserve Signal Chats by Top Trump Officials",
    "abstract": "The request by American Oversight came after revelations that Defense Secretary Pete Hegseth shared information on upcoming strikes in more than one group chat.",
    "url": "https://www.nytimes.com/2025/04/21/us/politics/trump-officials-signal-chats-hegseth-leak.html",
    "publishedDate": "2025-04-21T21:07:29Z",
    "author": "By Alan Feuer"
  },
  {
    "title": "Tuesday Briefing: Tributes for Pope Francis",
    "abstract": "Plus, making a difference on Earth Day.",
    "url": "https://www.nytimes.com/2025/04/21/briefing/pope-francis-death-vance-modi-india-israel.html",
    "publishedDate": "2025-04-21T21:00:15Z",
    "author": "By Emmett Lindner"
  },
  {
    "title": "Harvard Sues Trump Administration Over Threats to Cut Funding",
    "abstract": "Harvard’s lawsuit comes after the administration sought to force the university to comply with a list of demands by cutting billions in federal funding the school receives.",
    "url": "https://www.nytimes.com/2025/04/21/us/harvard-lawsuit-trump-administration.html",
    "publishedDate": "2025-04-21T21:00:06Z",
    "author": "By Stephanie Saul"
  }
]

検索結果を確認しましたが、「アメリカの政府効率化省」(Department of Government Efficiency)に関する具体的な記事は見つかりませんでした。より具体的なキーワードで再検索してみましょう。

search_articles
リクエスト
{
  `keyword`: `Department of Government Efficiency DOGE`
}
レスポンス
[
  {
    "title": "White House Birthrate Boosters See an Ally in Musk",
    "abstract": "Elon Musk talks a lot about the birthrate. The Trump administration is looking for ways to raise it.",
    "url": "https://www.nytimes.com/2025/04/21/us/politics/elon-musk-trump-birthrate.html",
    "publishedDate": "2025-04-21T23:18:03Z",
    "author": "By Jess Bidgood"
  },
  {
    "title": "Kennedy Plans to Phase Out 8 Commonly Used Food Dyes",
    "abstract": "The petroleum-based dyes are used in hundreds of thousands of items including cereals and sports drinks. More details are expected on Tuesday.",
    "url": "https://www.nytimes.com/2025/04/21/dining/rfk-jr-food-dyes.html",
    "publishedDate": "2025-04-21T18:16:37Z",
    "author": "By Kim Severson"
  },
  {
    "title": "Blackouts and the Collapse of Puerto Rico’s Colonial Bargain",
    "abstract": "For over half a century, the island’s commonwealth status was justified by promises of security, stability and the material comforts of modern life.",
    "url": "https://www.nytimes.com/2025/04/21/opinion/puerto-rico-blackout.html",
    "publishedDate": "2025-04-21T09:02:53Z",
    "author": "By Yarimar Bonilla"
  },
  {
    "title": "How Have DOGE Cuts Affected Prince George’s and Charles Counties?",
    "abstract": "A Times reporting team is looking for reader input on how the reduction in the federal work force has affected the two Maryland communities.",
    "url": "https://www.nytimes.com/2025/04/21/realestate/black-federal-workers-prince-georges-charles-county.html",
    "publishedDate": "2025-04-21T09:02:49Z",
    "author": "By Audra D. S. Burch"
  },
  {
    "title": "Why Trump’s 100-Day Blitz May Lead to a Historic Bust",
    "abstract": "When it comes to the presidency, a consequential start does not in any way equate to long-term success.",
    "url": "https://www.nytimes.com/2025/04/21/opinion/trump-100-days-approval.html",
    "publishedDate": "2025-04-21T09:02:34Z",
    "author": "By Doug Sosnik"
  },
  {
    "title": "Who Sits Where in Trump’s West Wing",
    "abstract": "See how the Trump administration has divvied up the West Wing, the formal workspace of the president and senior staff members.",
    "url": "https://www.nytimes.com/interactive/2025/04/21/us/politics/white-house-west-wing-offices-trump.html",
    "publishedDate": "2025-04-21T09:01:21Z",
    "author": "By Junho Lee, Elena Shao, Maggie Haberman and Doug Mills"
  },
  {
    "title": "In Trump’s America, There Are No Rules, Only Access",
    "abstract": "The real story about Trump’s tariffs may not be about trade. In many ways, it’s about power.",
    "url": "https://www.nytimes.com/2025/04/20/opinion/trump-tariffs-authoritarianism.html",
    "publishedDate": "2025-04-20T13:00:07Z",
    "author": "By Francisco Rodríguez"
  },
  {
    "title": "‘Huge Increases in Prices for American Working Families’: Three Experts on What Trump’s Economic Policy Means",
    "abstract": "A look at tariffs, the Fed, the dollar and how uncertainty is wreaking havoc on financial markets.",
    "url": "https://www.nytimes.com/2025/04/20/opinion/trump-economy-recession-uncertainty.html",
    "publishedDate": "2025-04-20T10:00:18Z",
    "author": "By Josh Barro, Lael Brainard and Conor Sen"
  },
  {
    "title": "Inside a Union’s Fight Against Trump’s Federal Job Cuts",
    "abstract": "Leaders of the union representing government workers say their battle is galvanizing but also alarming. “It’s insulting to say,” one said, “that we are lazy.”",
    "url": "https://www.nytimes.com/2025/04/20/business/economy/government-union-trump-musk.html",
    "publishedDate": "2025-04-20T09:01:12Z",
    "author": "By Rebecca Davis O’Brien"
  },
  {
    "title": "These Maps Show Federal Employees Work in Every Corner of America",
    "abstract": "Before the Trump administration’s cuts, members of the civilian federal work force were in every state and in thousands of the nation’s cities and small towns.",
    "url": "https://www.nytimes.com/interactive/2025/04/20/us/politics/federal-workers-america-map.html",
    "publishedDate": "2025-04-20T09:00:46Z",
    "author": "By Zach Levitt"
  }
]

より具体的な検索で、DOGEに関連する記事がいくつか見つかりました。特に以下の記事が政府効率化省に関連していると思われます:

  1. "How Have DOGE Cuts Affected Prince George's and Charles Counties?" (DOGEの削減がプリンスジョージ郡とチャールズ郡にどのような影響を与えたか)

    • 発行日: 2025年4月21日
    • 著者: Audra D. S. Burch
    • 概要: タイムズの報道チームが、連邦政府の人員削減が2つのメリーランド州のコミュニティにどのような影響を与えたかについて読者からの情報を求めています。
  2. "Inside a Union's Fight Against Trump's Federal Job Cuts" (トランプの連邦政府人員削減に対する組合の闘い)

    • 発行日: 2025年4月20日
    • 著者: Rebecca Davis O'Brien
    • 概要: 政府職員を代表する組合のリーダーたちは、この闘いは団結を促す一方で憂慮すべきものでもあると言っています。「私たちが怠け者だと言うのは侮辱的だ」と組合員の一人は述べています。
  3. "These Maps Show Federal Employees Work in Every Corner of America" (連邦職員がアメリカのあらゆる場所で働いていることを示す地図)

    • 発行日: 2025年4月20日
    • 著者: Zach Levitt
    • 概要: トランプ政権による削減前は、民間の連邦政府職員はすべての州と全国数千の都市や小さな町に存在していました。

これらの結果から、DOGEはDepartment of Government Efficiency(政府効率化省)の略称で、トランプ政権下で連邦政府の人員削減を行っていることが分かります。特定の記事をより詳しく確認したい場合は、お知らせください。

プロンプト

この三つの記事のURLを出してください

結果

承知しました。以下が、先ほど言及した3つの記事のURLです:

  1. "How Have DOGE Cuts Affected Prince George's and Charles Counties?" (DOGEの削減がプリンスジョージ郡とチャールズ郡にどのような影響を与えたか)

  2. "Inside a Union's Fight Against Trump's Federal Job Cuts" (トランプの連邦政府人員削減に対する組合の闘い)

  3. "These Maps Show Federal Employees Work in Every Corner of America" (連邦職員がアメリカのあらゆる場所で働いていることを示す地図)

これらの記事から、政府効率化省(DOGE)の活動や影響について詳細を知ることができると思います。

New York Timesの記事を検索できました。

タイトルや要約を日本語に翻訳して表示してくれるのはいいですね。

まとめ

New York Timesの記事を検索できるMCPサーバーを試してみました。

海外メディアの記事は検索するのに一工夫必要だったりするので、こういうものが多くあると便利そうですね。

Share this article

facebook logohatena logotwitter logo

© Classmethod, Inc. All rights reserved.