{"id":6338,"date":"2026-06-10T11:14:13","date_gmt":"2026-06-10T02:14:13","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=6338"},"modified":"2026-09-10T11:14:20","modified_gmt":"2026-09-10T02:14:20","slug":"mcp-401-unauthorized-auth","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/6338\/","title":{"rendered":"MCP\u306e401 Unauthorized\u539f\u56e0\u3068\u78ba\u8a8d\u9806"},"content":{"rendered":"<p>MCP\u3078\u63a5\u7d9a\u3057\u305f\u77ac\u9593\u306b401 Unauthorized\u304c\u8fd4\u308b\u3068\u3001\u30c8\u30fc\u30af\u30f3\u30fbOAuth\u30fb\u30d8\u30c3\u30c0\u30fc\u306e\u3069\u3053\u3092\u7591\u3046\u3079\u304d\u304b\u8ff7\u3044\u307e\u305b\u3093\u304b\uff1f \u7d50\u8ad6\u306f\u3001\u307e\u305a\u300cAuthorization\u30d8\u30c3\u30c0\u30fc\u304c\u6bce\u56de\u4ed8\u3044\u3066\u3044\u308b\u304b\u300d\u3092\u78ba\u8a8d\u3057\u3001\u6b21\u306b\u30c8\u30fc\u30af\u30f3\u306e\u6709\u52b9\u671f\u9650\u30fb\u767a\u884c\u5148\u30fbOAuth\u306e\u691c\u51fa\u60c5\u5831\u3092\u9806\u756a\u306b\u5207\u308a\u5206\u3051\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>401\u306e\u539f\u56e0\u306f\u307e\u305a4\u3064\u306b\u5206\u3051\u308b<\/h2>\n<p>\u306a\u305c401\u306b\u306a\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f MCP\u306e\u73fe\u884c\u4ed5\u69d8\u3067\u306f\u3001401\u306f\u300c\u8a8d\u8a3c\u304c\u5fc5\u8981\u300d\u307e\u305f\u306f\u300c\u30c8\u30fc\u30af\u30f3\u304c\u7121\u52b9\u300d\u306e\u3068\u304d\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>Authorization\u30d8\u30c3\u30c0\u30fc\u304c\u4ed8\u3044\u3066\u3044\u306a\u3044\u3001\u307e\u305f\u306fBearer\u5f62\u5f0f\u3067\u306f\u306a\u3044<\/li>\n<li>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u671f\u9650\u5207\u308c\u30fb\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b<\/li>\n<li>\u5225\u306eMCP\u30b5\u30fc\u30d0\u30fc\u5411\u3051\u306b\u767a\u884c\u3055\u308c\u305f\u30c8\u30fc\u30af\u30f3\u3092\u9001\u3063\u3066\u3044\u308b<\/li>\n<li>OAuth\u306eProtected Resource Metadata\u3084\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u691c\u51fa\u304c\u6b63\u3057\u304f\u52d5\u3044\u3066\u3044\u306a\u3044<\/li>\n<\/ul>\n<p>\u3053\u306e4\u70b9\u3092\u4e0a\u304b\u3089\u78ba\u8a8d\u3059\u308b\u3068\u3001\u8a8d\u8a3c\u51e6\u7406\u306e\u3069\u306e\u5c64\u3067\u6b62\u307e\u3063\u3066\u3044\u308b\u304b\u3092\u7d5e\u308a\u8fbc\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h2>Authorization\u30d8\u30c3\u30c0\u30fc\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u6700\u521d\u306b\u898b\u308b\u306e\u306f\u30d8\u30c3\u30c0\u30fc\u3067\u3059\u3002\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306fURI\u306e\u30af\u30a8\u30ea\u6587\u5b57\u5217\u3067\u306f\u306a\u304f\u3001HTTP\u306eAuthorization\u30d8\u30c3\u30c0\u30fc\u3067\u9001\u308a\u307e\u3059\u3002<\/p>\n<pre><code>Authorization: Bearer &lt;access-token&gt;<\/code><\/pre>\n<p>MCP\u306e\u4ed5\u69d8\u3067\u306f\u3001\u3053\u306eAuthorization\u30d8\u30c3\u30c0\u30fc\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u5404HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u521d\u3060\u3051\u4ed8\u3051\u3066\u3001\u305d\u306e\u5f8c\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u629c\u3051\u3066\u3044\u306a\u3044\u304b\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u72b6\u614b<\/th>\n<th>\u78ba\u8a8d\u30dd\u30a4\u30f3\u30c8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Authorization\u306a\u3057<\/td>\n<td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8a2d\u5b9a\u3084\u30d7\u30ed\u30ad\u30b7\u3067\u30d8\u30c3\u30c0\u30fc\u304c\u843d\u3061\u3066\u3044\u306a\u3044\u304b<\/td>\n<\/tr>\n<tr>\n<td>Bearer\u4ee5\u5916<\/td>\n<td>Authorization: Bearer &lt;token&gt; \u306b\u306a\u3063\u3066\u3044\u308b\u304b<\/td>\n<\/tr>\n<tr>\n<td>\u30af\u30a8\u30ea\u306btoken\u3092\u4ed8\u4e0e<\/td>\n<td>Authorization\u30d8\u30c3\u30c0\u30fc\u3078\u79fb\u3059<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u521d\u3060\u3051\u6210\u529f<\/td>\n<td>\u5f8c\u7d9aHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3082\u30d8\u30c3\u30c0\u30fc\u304c\u4ed8\u304f\u304b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>\u30c8\u30fc\u30af\u30f3\u306e\u6709\u52b9\u671f\u9650\u3068\u767a\u884c\u5148\u3092\u898b\u308b<\/h2>\n<p>\u30d8\u30c3\u30c0\u30fc\u304c\u6b63\u3057\u3044\u306e\u306b401\u306a\u3089\u3001\u6b21\u306f\u30c8\u30fc\u30af\u30f3\u81ea\u4f53\u3067\u3059\u3002\u671f\u9650\u5207\u308c\u3060\u3051\u3067\u306a\u304f\u3001\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u5411\u3051\u306b\u767a\u884c\u3055\u308c\u305f\u304b\u3082\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>MCP\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u53d7\u3051\u53d6\u3063\u305f\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u81ea\u5206\u306e\u30ea\u30bd\u30fc\u30b9\u5411\u3051\u306b\u767a\u884c\u3055\u308c\u305f\u3082\u306e\u304b\u691c\u8a3c\u3057\u307e\u3059\u3002\u5225\u30b5\u30fc\u30d3\u30b9\u5411\u3051\u306e\u30c8\u30fc\u30af\u30f3\u3092\u6d41\u7528\u3059\u308b\u3068\u3001\u5f62\u5f0f\u304c\u6b63\u3057\u304f\u3066\u3082401\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>exp\u306a\u3069\u306e\u6709\u52b9\u671f\u9650\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>issuer\u304c\u60f3\u5b9a\u3059\u308b\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<li>audience\u307e\u305f\u306fresource\u304c\u5bfe\u8c61MCP\u30b5\u30fc\u30d0\u30fc\u3092\u6307\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u4e0a\u6d41API\u7528\u306e\u30c8\u30fc\u30af\u30f3\u3092MCP\u30b5\u30fc\u30d0\u30fc\u3078\u305d\u306e\u307e\u307e\u8ee2\u9001\u3057\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ul>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aAudience \/ Resource<\/strong><br \/>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u300c\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u3067\u4f7f\u3046\u305f\u3081\u306b\u767a\u884c\u3055\u308c\u305f\u304b\u300d\u3092\u793a\u3059\u60c5\u5831\u3067\u3059\u3002MCP\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u60f3\u5b9a\u3068\u4e00\u81f4\u3057\u306a\u3044\u30c8\u30fc\u30af\u30f3\u306f\u62d2\u5426\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<hr>\n<h2>WWW-Authenticate\u304b\u3089OAuth\u3092\u8ffd\u3046<\/h2>\n<p>\u30c8\u30fc\u30af\u30f3\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u3001\u307e\u305f\u306f\u518d\u8a8d\u8a3c\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001401\u30ec\u30b9\u30dd\u30f3\u30b9\u306eWWW-Authenticate\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u3053\u304cOAuth\u30d5\u30ed\u30fc\u306e\u5165\u53e3\u3067\u3059\u3002<\/p>\n<pre><code>HTTP\/1.1 401 Unauthorized\r\nWWW-Authenticate: Bearer resource_metadata=&quot;https:\/\/mcp.example.com\/.well-known\/oauth-protected-resource&quot;<\/code><\/pre>\n<p>resource_metadata\u304c\u8fd4\u308b\u5834\u5408\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306fProtected Resource Metadata\u3092\u53d6\u5f97\u3057\u3001\u305d\u3053\u304b\u3089\u5229\u7528\u3059\u3079\u304d\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u3092\u7279\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>curl -i https:\/\/mcp.example.com\/.well-known\/oauth-protected-resource<\/code><\/pre>\n<p>401\u306f\u8fd4\u308b\u306e\u306bWWW-Authenticate\u3084Protected Resource Metadata\u304c\u6b20\u3051\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u306eOAuth\u516c\u958b\u8a2d\u5b9a\u3082\u78ba\u8a8d\u5bfe\u8c61\u3067\u3059\u3002<\/p>\n<h2>401\u3068403\u3092\u6df7\u540c\u3057\u306a\u3044<\/h2>\n<p>\u8a8d\u8a3c\u3067\u304d\u306a\u3044401\u3068\u3001\u6a29\u9650\u4e0d\u8db3\u306e403\u306f\u5207\u308a\u5206\u3051\u307e\u3059\u3002\u7b54\u3048\u304c\u5909\u308f\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>HTTP<\/th>\n<th>\u610f\u5473<\/th>\n<th>\u307e\u305a\u78ba\u8a8d\u3059\u308b\u3082\u306e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>401<\/td>\n<td>\u8a8d\u8a3c\u304c\u5fc5\u8981\u3001\u307e\u305f\u306f\u30c8\u30fc\u30af\u30f3\u304c\u7121\u52b9<\/td>\n<td>Bearer\u30d8\u30c3\u30c0\u30fc\u3001\u671f\u9650\u3001\u767a\u884c\u5148\u3001OAuth\u691c\u51fa<\/td>\n<\/tr>\n<tr>\n<td>403<\/td>\n<td>\u8a8d\u8a3c\u6e08\u307f\u3060\u304c\u6a29\u9650\u304c\u4e0d\u8db3<\/td>\n<td>scope\u3084\u30a2\u30af\u30bb\u30b9\u8a31\u53ef<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>401\u306a\u306e\u306bscope\u3060\u3051\u3092\u5909\u66f4\u3057\u7d9a\u3051\u308b\u3068\u539f\u56e0\u304b\u3089\u5916\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u30c8\u30fc\u30af\u30f3\u304c\u6709\u52b9\u306b\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u5148\u306b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u5207\u308a\u5206\u3051\u306f\u3053\u306e\u9806\u756a\u3067\u9032\u3081\u308b<\/h2>\n<ol>\n<li>401\u30ec\u30b9\u30dd\u30f3\u30b9\u306eWWW-Authenticate\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>Authorization: Bearer &lt;token&gt; \u304c\u5404HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u4ed8\u3044\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u30c8\u30fc\u30af\u30f3\u306e\u671f\u9650\u5207\u308c\u30fb\u7121\u52b9\u5316\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>issuer\u3068\u5bfe\u8c61resource \/ audience\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<li>Protected Resource Metadata\u304b\u3089\u8a8d\u53ef\u30b5\u30fc\u30d0\u30fc\u3092\u6b63\u3057\u304f\u691c\u51fa\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/li>\n<li>401\u3067\u306f\u306a\u304f403\u306a\u3089scope\u30fb\u6a29\u9650\u5074\u3078\u5207\u308a\u66ff\u3048\u308b<\/li>\n<\/ol>\n<p>\u3053\u3053\u307e\u3067\u78ba\u8a8d\u3059\u308c\u3070\u3001\u300c\u30c8\u30fc\u30af\u30f3\u3092\u9001\u308c\u3066\u3044\u306a\u3044\u300d\u306e\u304b\u300c\u9001\u3063\u305f\u30c8\u30fc\u30af\u30f3\u304c\u62d2\u5426\u3055\u308c\u3066\u3044\u308b\u300d\u306e\u304b\u300cOAuth\u691c\u51fa\u304c\u58ca\u308c\u3066\u3044\u308b\u300d\u306e\u304b\u3092\u5206\u96e2\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\uff08MCP\u30b5\u30fc\u30d0\u30fc\u5168\u4f53\u306e\u5f79\u5272\u3084\u63a5\u7d9a\u306e\u4ed5\u7d44\u307f\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1579\/\">MCP\u30b5\u30fc\u30d0\u30fc\u3068\u306f\uff1f\u4ed5\u7d44\u307f\u3068\u4f7f\u3044\u65b9<\/a>\u300f\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09<\/p>\n<h2>\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n<h3>API\u30ad\u30fc\u3092\u4ed8\u3051\u308c\u3070MCP\u306e401\u306f\u76f4\u308a\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u5fc5\u305a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002MCP\u306e\u6a19\u6e96\u7684\u306aHTTP\u8a8d\u8a3c\u306fOAuth 2.1\u306eBearer\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002\u72ec\u81eaAPI\u30ad\u30fc\u5bfe\u5fdc\u306f\u30b5\u30fc\u30d0\u30fc\u5b9f\u88c5\u3054\u3068\u306e\u4ed5\u69d8\u306a\u306e\u3067\u3001\u305d\u306eMCP\u30b5\u30fc\u30d0\u30fc\u306e\u8a8d\u8a3c\u65b9\u5f0f\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30c8\u30fc\u30af\u30f3\u304c\u3042\u308b\u306e\u306b401\u306b\u306a\u308b\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u671f\u9650\u5207\u308c\u3001\u7f72\u540d\u691c\u8a3c\u5931\u6557\u3001\u60f3\u5b9a\u5916\u306eissuer\u3001\u5bfe\u8c61resource \/ audience\u306e\u4e0d\u4e00\u81f4\u306a\u3069\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3068\u3001\u305d\u306eMCP\u30b5\u30fc\u30d0\u30fc\u3067\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\u306f\u5225\u3067\u3059\u3002<\/p>\n<h3>401\u3067scope\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3069\u3046\u3057\u307e\u3059\u304b\uff1f<\/h3>\n<p>WWW-Authenticate\u306bscope\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u60c5\u5831\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u8a8d\u53ef\u8981\u6c42\u306b\u53cd\u6620\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u307e\u305a\u6709\u52b9\u306a\u8a8d\u8a3c\u30d5\u30ed\u30fc\u304c\u6210\u7acb\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>MCP\u306e401 Unauthorized\u306f\u3001\u307e\u305aBearer\u30d8\u30c3\u30c0\u30fc\u3001\u6b21\u306b\u30c8\u30fc\u30af\u30f3\u306e\u6709\u52b9\u6027\u3068\u767a\u884c\u5148\u3001\u6700\u5f8c\u306bOAuth\u306e\u691c\u51fa\u60c5\u5831\u3092\u898b\u308b\u3068\u6574\u7406\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u624b\u5143\u306e401\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u958b\u304d\u3001WWW-Authenticate\u3068Authorization\u30d8\u30c3\u30c0\u30fc\u306e2\u70b9\u304b\u3089\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3053\u304c\u5206\u304b\u308c\u3070\u3001\u6b21\u306b\u76f4\u3059\u5834\u6240\u304c\u898b\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"featured_media":6339,"template":"","meta":{"ssp_meta_title":"MCP 401 Unauthorized\u306e\u539f\u56e0\uff5c\u30c8\u30fc\u30af\u30f3\u30fbOAuth\u30fb\u8a8d\u8a3c\u30d8\u30c3\u30c0\u30fc\u78ba\u8a8d","ssp_meta_description":"MCP\u3067401 Unauthorized\u304c\u8fd4\u308b\u539f\u56e0\u3092\u3001Authorization\u30d8\u30c3\u30c0\u30fc\u3001\u30c8\u30fc\u30af\u30f3\u671f\u9650\u3001resource\u30fbaudience\u3001OAuth\u691c\u51fa\u306e\u9806\u306b\u5207\u308a\u5206\u3051\u307e\u3059\u3002401\u3068403\u306e\u9055\u3044\u3082\u6574\u7406\u3057\u307e\u3059\u3002","ssp_meta_keyword":"MCP 401 Unauthorized \u539f\u56e0,MCP 401 \u30a8\u30e9\u30fc,MCP OAuth \u8a8d\u8a3c,MCP Bearer token,MCP Authorization header,MCP WWW-Authenticate,MCP Protected Resource Metadata,MCP token audience","ssp_meta_canonical":""},"route_category":[9],"_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/6338"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/6339"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=6338"}],"wp:term":[{"taxonomy":"route_category","embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route_category?post=6338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}