Cover image
Try Now
2025-03-21

Jグランツ(デジタル庁が运営する国や自治体の补助金电子申请システム)の公开APIを利用したMCP服务器

3 years

Works with Finder

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.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

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

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

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

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

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

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    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).