Skip to main content
Glama

JP Bids MCP

CI CodeQL License: Apache 2.0

日本の官公需入札情報をMCPで検索・順位付け・要件抽出・出力するサーバー。完全無料・読み取り中心で7ツールを提供します。 Search, rank, extract requirements, and export Japanese public procurement notices through MCP (free, read-centric, 7 tools). Server MCP untuk mencari, memeringkat, mengekstrak persyaratan, dan mengekspor pengumuman pengadaan pemerintah Jepang (gratis, read-centric, 7 tools).

完全無料・読み取り中心 / Free and Read-Centric 会員登録・有料プランなしで全公開機能(7ツール)を無料で利用できます。Stripe等の課金呼出しは行いません。 All 7 public tools are available for free without subscription or paid tiers. AI client usage fees may apply separately.


Project Status & Release Channels / 公開状況と配信チャネル

Channel / 項目

Status / 状態

Description / 内容

GitHub Open Source

Active (公開中)

SUGUKURU-CO-LTD/jp-bids-mcp (Apache 2.0). See the CI/CodeQL badges for automated checks; a reproducible offline mock demo is included.

Local Mock & Cross-Client

Verified (実証済)

Offline M1–M3-B (Claude Desktop stdio) & Gate B (ChatGPT Secure Tunnel) verification (7 tools, MCP Apps UI, bidirectional tool calls).

npm Package

Published (公開済み)

jp-bids-mcp@0.10.0 is published. Package availability and live client verification are tracked separately.

Official MCP Registry

Planned (準備中)

Namespace io.github.SUGUKURU-CO-LTD/jp-bids configured; registry listing pending separate approval.

Remote MCP Endpoint

Available (提供中)

https://mcp.bid-jp.com/mcp supports OAuth authorization. Live search, initial UI, snapshot detail, and a two-notice selected CSV were verified on Claude's production custom connection.

💡 Public Technical Showcase / 実機デモ技術解説:
Claude Desktop および ChatGPT 内で動作する MCP Apps 対話型ワークスペースの実機スクリーンショット、アーキテクチャ解説、および再現手順は docs/showcase/README.md をご覧ください。 See docs/showcase/README.md for real-device screenshots, architectural deep-dives, and offline reproduction guides of the interactive MCP Apps workspace running inside Claude Desktop and ChatGPT.


Start with Claude / Claudeで使い始める

  1. Open Customize → Connectors in Claude and add a custom connector with URL https://mcp.bid-jp.com/mcp.

  2. Complete OAuth authorization and enable JP Bids in the conversation. Organization-managed accounts may require an administrator to add the connector first; see Claude's official instructions.

  3. Ask: JP Bidsのsearch_bids_appで、東京都・役務、件名に「システム」を含む公告を最大3件検索し、AI Bid Workspaceを表示してください。

  4. Select notices using their checkboxes and click 「選択CSV」. Confirm that you actually obtained the file or CSV text and that it contains the selected notices.

Host behavior varies: a supported host can save or copy the CSV; another host may send an export request to chat or copy an instruction instead. A request-sent notification is not proof that a CSV was obtained. Search hit totals can exceed the number of notices retrieved. 「全件CSV」 exports the current retrieved notices, not every portal search hit (up to 50 notices).

Japanese user guide and troubleshooting · Functional specification · Operations

Related MCP server: Taiwan Tender MCP

Current Verification Status / 現在の検証状況

As of 2026-10-21 JST, Claude's production custom connection has been used for live notice search and initial UI rendering (search_bids_app), signed snapshot restoration (get_bid_detail), and obtaining a CSV containing two selected notices. The notices, issuing agencies, and reasons in that file were checked for correspondence.

The earlier reported agency/reason mismatch remains unresolved in origin: fixed-data regression tests did not reproduce it, and independent raw transport evidence is unavailable. This is not a claim that all UI paths, all clients, document-body extraction, or formal Gate 1 acceptance have passed.

Verification scope and known limitations is the maintained status reference.

Historical Offline Verification / 過去のモック実証

IMPORTANT

Historical scope: offline fixtures in Claude Desktop M1–M3-B and ChatGPT Gate B. These records do not establish current production interoperability for every client.

  • Claude Desktop Mock Verification (M1–M3-B): PASSED (実証完了). Verified inside Claude Desktop using local stdio mock launcher (examples/mock-stdio-server.mjs) with offline XML fixtures (tests/fixtures/kkj-search.xml, KKJ-TEST-001):

    • M1: Search bids via chat (search_bids) returning structured results.

    • M2: Interactive UI workspace rendering (search_bids_app) via MCP Apps specification (ui://jp-bids/search-results.html).

    • M3-A: In-app interactive state changes (row selection, selection counts, CSV/JSON export button activation).

    • M3-B: Bidirectional UI-to-server tool invocation (in-app search calling search_bids_app returning in 2ms and updating UI).

  • ChatGPT Cross-Client Verification (Gate B): PASSED (実機受入合格). Verified inside ChatGPT via OpenAI Secure MCP Tunnel with the same JP Bids MCP codebase:

    • 7 Tools Discovered & Executed: search_bids, get_bid_detail, list_recent_bids, extract_bid_requirements, rank_bids, export_bid_shortlist, search_bids_app.

    • Inline MCP Apps Workspace: search_bids_app renders full 2-pane interactive AI Bid Workspace (ui://jp-bids/search-results.html).

    • Bidirectional In-App Interactions: In-app item selection (0 -> 1 selected), direct tool invocation via app.callServerTool (rank_bids scoring update), chat coordination via app.sendMessage (requirement extraction), and in-app re-search with instant UI re-rendering.

    • (Operational Notes: 2 cumulative HTTP 409 Conflict events were observed during Gate B verification. As individual response bodies and correlation IDs were unavailable, the cause remains unspecified. No additional failures were observed in subsequent acceptance testing. This Gate B record used offline XML fixtures; it does not establish live KKJ behavior or independent third-party verification).

  • Clean Clone Reproduction vs. Automated Tests:

    • Automated Tests: Vitest unit/integration tests (npm test; see CI for the result at a particular commit) verify server schemas, security constraints, UI view models, and protocol invariants.

    • Clean Clone Stdio Verification: Reproducibility verified on a separate, newly cloned directory without development caches (npm ci → npm run build → stdio handshake), proving 7-tool registration, mock search response (KKJ-TEST-001), and MCP Apps UI HTML bundle retrieval.

    • Desktop & Web Client Verification: Process launch, connection, and 7-tool registration confirmed in Claude Desktop and ChatGPT. In-app interactive GUI actions require manual user operation in desktop/web clients and are tracked distinct from programmatic test evidence.

  • Formal Gate 1 Acceptance: The live checks summarized above do not establish completion of the separate 35-condition Gate 1 acceptance plan. Do not infer its completion from mock records or a successful CI run.


Optional Local Mock Demo / 開発者向けオフラインデモ

誰でもネットワークアクセスなしで Claude Desktop および MCP クライアントから直ちに動作検証を行える、再現可能なローカルモックデモを提供しています。

To safely evaluate JP Bids MCP and reproduce the interactive MCP Apps workspace UI offline without live network dependencies:

NOTE

Network Requirements & Mock Safety:

  • An active internet connection is required for git clone and the initial dependency installation via npm ci.

  • Once dependencies are installed, running the local mock demo (examples/mock-stdio-server.mjs) performs no external network requests to the live KKJ API; all responses are served offline using local XML fixtures (tests/fixtures/kkj-search.xml, KKJ-TEST-001).

  • (Note: This mock uses application-level request interception within Node.js to guard runtime fetch calls and resolve local fixtures. It is not an OS-level sandbox or network firewall isolation).

1. Clone & Build / リポジトリのビルド

For reproducible builds, use npm ci to install pinned dependencies:

git clone https://github.com/SUGUKURU-CO-LTD/jp-bids-mcp.git
cd jp-bids-mcp
npm ci
npm run build
npm test
TIP

Windows PowerShell Users: If script execution is restricted by PowerShell policy (PSSecurityException on npm.ps1), execute with npm.cmd instead:

npm.cmd ci
npm.cmd run build
npm.cmd test

2. Configure Claude Desktop / Claude Desktop 設定

Edit your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows (Standard installer): %APPDATA%\Claude\claude_desktop_config.json

  • Windows (Microsoft Store / UWP edition): In Store distributions, configuration files may be virtualized under a package-specific directory. While package identifiers can vary across installations, the following path was observed in our Windows 11 verification environment as an observed path example: %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "jp-bids-mock": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/jp-bids-mcp/examples/mock-stdio-server.mjs"]
    }
  }
}

(Replace /ABSOLUTE/PATH/TO/jp-bids-mcp with your actual local repository path. On Windows, if node is not resolved by the GUI process from environment PATH, specifying the absolute path to node.exe, e.g., "C:\\Program Files\\nodejs\\node.exe", is a recommended workaround).

3. Ask Claude / AIに話しかける

Restart Claude Desktop, and ask:

「鹿児島県の入札案件を検索して」

→ ローカルフィクスチャ KKJ-TEST-001(鹿児島市システム保守業務委託)が検索され、インタラクティブな AI Bid Workspace 画面 (ui://jp-bids/search-results.html) が開きます。画面内でのチェック選択、スコアリング、双方向検索が即座に動作します。


Standard Local Runtime / 通常ローカル起動

WARNING

Live API Access Notice:

  • node dist/server.js is the standard production server build, not a mock server.

  • Executing tools in this mode may initiate real HTTP network requests to the official SME Agency KKJ API (http://www.kkj.go.jp/api/).

  • To avoid unapproved live API traffic or rate limit consumption during local evaluation, use the mock demo (examples/mock-stdio-server.mjs) instead.

If you wish to run the standard build server directly:

{
  "mcpServers": {
    "jp-bids": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/jp-bids-mcp/dist/server.js"],
      "env": {
        "JP_BIDS_PROFILE": "public_mvp"
      }
    }
  }
}

CLI version check:

node dist/server.js --version

Distribution and Runtime Options / 配信・起動方法

The npm package and hosted endpoint are available. Directory listings have their own status and are not implied by package publication.

1. Published npm Package

Install the published version in a project directory and check the CLI version:

npm install jp-bids-mcp@0.10.0
node ./node_modules/jp-bids-mcp/dist/server.js --version

Installation accesses npm. Starting the normal server and calling search tools may access KKJ; the local mock demo above is a separate mode. Publication and package checks do not establish live UI behavior in every local client.

2. Remote Streamable HTTP Endpoint

In hosted environments, remote MCP clients connect via OAuth 2.0:

https://mcp.bid-jp.com/mcp

(Requires OAuth 2.0 with Dynamic Client Registration + PKCE S256).

NOTE

Remote Connection Verification & Standard Workflow (2026-10-21 JST)

  • Connection, OAuth 2.0 & Pricing: Register https://mcp.bid-jp.com/mcp as a custom connector in Claude. Completing OAuth 2.0 authorization grants access to all 7 public tools. JP Bids MCP is free to use (AI client usage fees may apply separately).

  • Standard Workflow (CSV Export): Search (search_bids_app to retrieve notices and display UI) → Select candidates via checkboxes → Click "選択CSV" → Obtain CSV (16-column CSV data)

  • CSV Verification & Host Environment Behavior: In this verification, we obtained a CSV file containing two selected bid notices and verified the correspondence between the notices, issuing agencies, and reasons. The specific action following the "選択CSV" click (such as triggering a file download dialog or copying to clipboard) depends on the host AI client and OS environment. When direct server-tool calls are unavailable, the UI may instead send a request to chat or copy an instruction. These notifications do not prove CSV receipt. Confirm the resulting file or CSV text and its selected notices; see the user guide for notification-specific steps.

  • Official Source Verification: This tool organizes public procurement metadata and official document URLs. Always verify bidding qualifications, submission deadlines, and formal specifications directly against the official tender notices published by the contracting authority.


What It Provides / 主な機能

  • 官公需入札情報の読み取り専用検索: Read-only search for Japanese public procurement notices.

  • AI Bid Radar: 案件を実務優先度でスコアリング・ランキング (rank_bids)。

  • 要件・提出書類抽出: 案件メタデータから参加要件・提出書類・資格を構造化抽出 (extract_bid_requirements)。※外部PDF抽出は既定OFF。

  • MCP Apps UI (search_bids_app): Claude Desktop 内で動作する対話型ワークスペース画面 (ui://jp-bids/search-results.html)。単一HTMLファイルにインラインバンドルされ、CSP (connectDomains: [], resourceDomains: []) 設定により外部アセット読み込みを厳格制限。画面内での絞り込み、選択、双方向ツール呼び出しに対応。

  • ショートリスト出力 (export_bid_shortlist): 選択した案件をCSV / JSON形式でエクスポート。

  • 完全無料・読み取り専用: 会員登録や有料プランなしで全公開機能(7ツール)を無料で利用可能。提供側の課金(Stripe等)は一切行いません。

  • Resources・Resource Templates: コンテキスト注入用の静的リソースおよび動的テンプレート。

  • 安全設計: 添付ファイルの永続保存なし(有効化された抽出時はメモリ上で一時処理する場合があります)、トークンバケット型レート制限 (<= 1 req/sec)、stdoutへのログ出力完全排除(stderrのみ)。

データ出典 / Data source: 中小企業庁 官公需情報ポータルサイト 検索API.


Tools / ツール一覧 (Public MVP: 7 ツール)

ツール / Tool

説明 / Description

Profile

search_bids

キーワード・地域・業種で検索 / Keyword, region & category search

Public MVP

list_recent_bids

直近の公告一覧(過去1〜30日) / Recent notices (past 1–30 days)

Public MVP

get_bid_detail

案件詳細取得 / Bid detail

Public MVP

rank_bids

自社条件でスコアリング・順位付け / Score & rank by your criteria

Public MVP

extract_bid_requirements

要件・提出書類・資格の抽出(外部抽出既定OFF) / Requirement extraction

Public MVP

export_bid_shortlist

CSV/JSONエクスポート(選択順序保持) / Export shortlist to CSV/JSON

Public MVP

search_bids_app

MCP Apps UI付き検索ワークスペース (ui://jp-bids/search-results.html) / Interactive search workspace with single-file HTML panel

Public MVP


Protocol & Specification Support / MCP 仕様対応状況

JP Bids MCP は Model Context Protocol の標準仕様に基づき実装および自動テスト検証されています:

  • Protocol Version: 2025-11-25 を正式サポート(ヘッダー受け入れ検証済み)。将来の仕様拡張も順次追従予定。

  • Header Mismatch Validation: Mcp-Method / Mcp-Name ヘッダーが存在する場合、JSON-RPC body との不一致を厳格に拒否。

  • OAuth 2.0 Security: OAuth authorization response および JWT に RFC 9207 iss パラメータを含める堅牢な認可仕様をサポート。

  • MCP Apps Extension: @modelcontextprotocol/ext-apps (v1.7.4) に基づく安全なインライン UI 配信。


Resources / リソース一覧

  • attribution://kkj: 中小企業庁 官公需情報ポータルサイト データ出典および免責条項

  • docs://api-reference: 7ツールの API リファレンス

  • codes://prefectures: 都道府県コード一覧

  • ui://jp-bids/search-results.html: MCP Apps AI Bid Workspace UI リソース

  • prefecture://{lg_code}: 自治体別入札情報テンプレート


Verification & Testing / 検証コマンド

# 全体チェック (Biome Lint, TypeScript型検査, Vite UIビルド, Vitest)
npm run check

# TypeDoc API ドキュメント生成・差分検査 (Windows & Linux 両対応)
npm run docs:check

# 本番実行時依存のセキュリティ監査 (脆弱性 0 件)
npm audit --omit=dev

# オフラインモック stdio 単体検証テスト
npx vitest run tests/mock-stdio-verification.test.ts

Interoperability / 相互運用

JP Bids MCP は、日本の行政データ・業務系 MCP サーバーとの親和性を考慮して設計されています:

  • J-Grants MCP (デジタル庁): 入札案件(JP Bids MCP)と補助金・助成金(J-Grants MCP)を同一会話内でシームレスに横断検索。

  • freee MCP (freee株式会社): 落札後の取引登録、請求書発行、会計連携との自動化パイプライン。

(注: JP Bids MCP、J-Grants MCP、freee MCP はそれぞれ別組織によって開発・運用されている独立したサーバーです。入札判断前に必ず公式調達書類をご確認ください)


Metadata & Specifications / 仕様とメタデータ区分

  • Official MCP Registry Manifest (server.json):

    • $schema: "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json" 準拠。

    • レジストリ識別名: io.github.SUGUKURU-CO-LTD/jp-bids

  • Server Card Discovery (public/.well-known/mcp/server-card.json):

    • 公開 7 ツールの JSON Schema、認証スキーム、および MCP Apps UI バインディングを定義。


Notes / 注意事項

このサーバーは入札情報の添付ファイルを保存しません。入札判断前に必ず公式調達書類を確認してください。 This server does not store upstream documents or attachment files. Results are reference information and should be verified against official procurement documents before bidding decisions.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Read-only MCP server for searching Japanese government procurement bid notices (官公需) from the SME Agency's KKJ portal. Includes AI ranking, PDF requirement extraction, and CSV/calendar export.
      49 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      MCP server that provides real-time, high-quality tender information from Taiwan's government e-procurement website via enhanced web scraping, enabling AI to query and analyze procurement opportunities.
      15
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for searching government tenders from CanadaBuys and SAM.gov with free stats and paid search, latest, and AI matching tools using x402 micropayments.
      4
      1
      MIT
    • A
      license
      B
      quality
      Not graded
      maintenance
      MCP server for searching Japanese government procurement notices via the Kanpou API. Enables LLMs to search by date, keyword, or detailed criteria.
      3
      1
      MIT