MCP cover image
See in Github
2025-03-21

J グランツ (デジタル庁が運営する国や自治体の補助金電子申請システム) の公開 API を利用した servidor MCP

1

Github Watches

1

Github Forks

1

Github Stars

jgrants-mcp-server

Jグランツ(デジタル庁が運営する国や自治体の補助金電子申請システム)の公開APIを利用した MCP Server FastMCPライブラリを利用して、以下のMCPツールを提供します。

  • list_subsidies
    キーワード(デフォルトは「補助金」)を指定して、応募受付中の補助金一覧を検索・取得します。

  • get_subsidy_detail
    補助金の詳細情報を補助金のIDを用いて取得します。取得時、添付文書の巨大なbase64データは除去し、代わりにダウンロード用URLを付与します。

  • download_attachment
    指定した補助金の添付文書(カテゴリ、インデックス指定)のダウンロード用URLを返します。
    ※実際のファイルデータ(base64)は返さず、URL経由で直接ダウンロード可能とします。

注意:
すべてのツールで、補助金の識別にはタイトルではなく必ず id 項目を利用してください(例:"a0WJ200000CDIUiMAP")。

特徴

  • 非同期処理:
    httpx ライブラリを利用して非同期でJグランツAPIにアクセスします。

  • MCPツール:
    FastMCPを使用して、以下の3つのツールがMCP形式で公開されています。

    • list_subsidies(keyword: str = "補助金")
    • get_subsidy_detail(subsidy_id: str)
    • download_attachment(subsidy_id: str, category: str, index: int)
  • 軽量なレスポンス:
    補助金の詳細情報取得時、添付文書のbase64データは除去され、ダウンロード用URLが生成されるため、レスポンスが軽量になります。

必要環境

  • Python 3.7 以降
  • httpx
  • FastMCP
    ※または、MCPランチャーが提供するライブラリ
  • (オプション)FastAPI, Uvicorn(ローカルテスト用)

インストール手順

  1. リポジトリのクローン

    git clone <your-repository-url>
    cd <repository-directory>
    
  2. 仮想環境の作成と依存パッケージのインストール

source venv/bin/activate   # Windowsの場合: venv\Scripts\activate
pip install httpx fastmcp fastapi uvicorn

ツールの使い方

list_subsidies

  • 概要: 指定したキーワードで応募受付中の補助金一覧を取得します。デフォルトは「補助金」ですが、任意のキーワードを入力可能です。
  • 入力パラメータ:
    • keyword (文字列, オプション) – 検索キーワード
  • 出力例: JSON形式の文字列(補助金一覧の全体情報)を返します。

get_subsidy_detail

  • 概要: 補助金の詳細情報を取得します。添付文書のbase64データは除去され、各添付文書に対して補助金のIDを利用したダウンロードURLが付与されます。
  • 入力パラメータ:
  • subsidy_id (文字列)
  • 補助金のID(タイトルではなく必ずIDを指定)
  • 出力例: MCP形式のJSONオブジェクト
  "content": [
    {
      "type": "text",
      "text": "<詳細情報のJSON文字列>"
    }
  ]
}

download_attachment

  • 概要: 指定した補助金の添付文書について、base64データは返さず、ダウンロード用URLを返します。
  • 入力パラメータ:
    • subsidy_id (文字列) – 補助金のID(必ずIDを指定)
    • category (文字列) – 添付文書のカテゴリ(例:application_guidelines, outline_of_grant, application_form)
    • index (整数) – 添付文書のインデックス(0から開始)
  • 出力例: MCP形式のJSONオブジェクト
      "content": [
        {
          "type": "text",
          "text": "Attachment download URL: https://your-mcp-server.example.com/subsidies/<subsidy_id>/<category>/<index>"
        }
      ]
    }
    

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • modelcontextprotocol
  • Servidores de protocolo de contexto modelo

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • n8n-io
  • Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • open-webui
  • Interfaz de IA fácil de usar (admite Ollama, Operai API, ...)

    Reviews

    1 (1)
    Avatar
    user_P7SsQz6t
    2025-04-15

    I have been using mcp-server-iris by caretdev and it has significantly improved our server efficiency. Its compatibility with InterSystems IRIS is seamless, making deployment and management straightforward. Highly recommend for those seeking robust MCP server solutions. Check it out [here](https://mcp.so/server/mcp-server-iris/caretdev).