jgrants-mcp-server
2
This project offers an MCP Server for accessing Japan's digital subsidy application system, using public APIs to streamline subsidy information retrieval. Notable for its asynchronous processing and lightweight responses, it caters to efficient data handling and end-user accessibility.
Overview
This project is an MCP Server that utilizes the public API of J-Grants, a digital application system for government and municipal subsidies managed by the Digital Agency. It uses the FastMCP library to provide the following MCP tools:
- list_subsidies: Search and retrieve a list of available subsidies based on a specified keyword.
- get_subsidy_detail: Obtain details of a subsidy using its ID, excluding large base64 data, and providing a download URL instead.
- download_attachment: Return a download URL for specified attachment documents related to a subsidy.
Features
- Asynchronous Processing: Access the J-Grants API asynchronously using the httpx library.
- MCP Tools: Utilize FastMCP to offer three tools in MCP format.
- Lightweight Response: Base64 data is excluded in detail retrieval, generating a lighter response with a download URL.
Requirements
- Python 3.7 or later
- httpx
- FastMCP
- (Optional) FastAPI, Uvicorn (for local testing)
Usage
- list_subsidies: Retrieve a list of open subsidies with a specified keyword.
- get_subsidy_detail: Obtain detailed information using subsidy ID.
- download_attachment: Get a download URL for specific attachments without returning base64 data.