<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bengo4</author_name>
  <author_url>https://blog.hatena.ne.jp/bengo4/</author_url>
  <blog_title>弁護士ドットコム株式会社 Creators’ blog</blog_title>
  <blog_url>https://creators.bengo4.com/</blog_url>
  <categories>
    <anon>リーガルブレイン開発</anon>
  </categories>
  <description>MCP サーバーを書いていて、いざ「公開しよう」となった瞬間に手が止まったことはないだろうか。ツールの実装は終わっているのに、そこから先に待っているのは OAuth の仕様書の山だ。 この記事では、MCP の認可で要求される Resource Server (RS) の役割 を NGINX に担わせる。アプリ側のコードを 1 行も足さず、NGINX の設定だけで MCP サーバーを保護するところまでを、実際に動かしながら示す。読み終えたとき、あなたの手元では「トークン無しなら 401、正しいトークンなら通る」MCP エンドポイントが動いているはずだ。 対象は 自作の MCP サーバーを公開した…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcreators.bengo4.com%2Fentry%2F2026%2F07%2F08%2F091219&quot; title=&quot;MCP サーバーの認可を、自前で書かず NGINX で OAuth 2.1 Resource Server にする - 弁護士ドットコム株式会社 Creators’ blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/b/bengo4/20260708/20260708091029.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-07-08 09:12:19</published>
  <title>MCP サーバーの認可を、自前で書かず NGINX で OAuth 2.1 Resource Server にする</title>
  <type>rich</type>
  <url>https://creators.bengo4.com/entry/2026/07/08/091219</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
