
Grant Hunter MCP is a FastAPI-based Model Context Protocol (MCP) service for grant discovery and pitch drafting.
概览
Grant Hunter MCP is a FastAPI-based Model Context Protocol (MCP) service for grant discovery and pitch drafting. This repository contains the of the Grant Hunter product. It exposes HTTP endpoints that any MCP-compatible client can call to search for grants, generate pitches, and interact with Google Workspace. The private product layer—user-facing UI, workflow orchestration, and end-user authentication—lives in a separate private repository. This public repo exists so that external developers and MCP clients can integrate with the server independently. For a visual overview of how the public MCP server relates to the broader product, see the architecture diagram in TECHNICAL.md.
README
以下为原文 README 节选,完整内容请查看原文。
Grant Hunter MCP
Grant Hunter MCP is a FastAPI-based Model Context Protocol (MCP) service for grant discovery and pitch drafting.
Repository Role
This repository contains the public MCP server layer of the Grant Hunter product. It exposes HTTP endpoints that any MCP-compatible client can call to search for grants, generate pitches, and interact with Google Workspace.
The private product layer—user-facing UI, workflow orchestration, and end-user authentication—lives in a separate private repository. This public repo exists so that external developers and MCP clients can integrate with the server independently.
For a visual overview of how the public MCP server relates to the broader product, see the architecture diagram in TECHNICAL.md.
Non-Goals
The following are not part of this repository:
- User-facing UI or frontend components
- End-to-end product workflows spanning the private product layer
- User account management, billing, or tenancy logic
- Full OAuth2 token lifecycle service
- Kubernetes/Helm deployment templates
- Any private product business logic not directly tied to MCP endpoints
Verified Capabilities
POST /query_grants- Searches Grants.gov by keyword.
- Uses async
httpxcall path with retry/backoff. - Applies optional
focus_areafiltering over returned opportunities. - Deduplicates by opportunity number.
- Sorts by close date.
- Falls back to mock grants if upstream lookup fails, with response metadata (
fallback_used,data_source).
POST /generate_pitch- Generates a draft pitch using Gemini (
gemini-2.0-flashthengemini-2.0-flash-lite). - Falls back to a deterministic template when generation fails or no API key is set.
- Generates a draft pitch using Gemini (
POST /manage_google_services- Creates a Gmail draft and a Calendar event from request inputs.
- Returns a typed response contract (
GoogleServicesOutput). - Supports optional server-side OAuth access token refresh when
refresh_token,client_id, andclient_secretare provided. - Supports
oauth_session_idto use persisted server-side OAuth credentials.
POST /oauth_sessions- Persists OAuth credentials server-side and returns a
session_id.
- Persists OAuth credentials server-side and returns a
DELETE /oauth_sessions/{session_id}- Deletes a persisted OAuth session.
- Supports
DEMO_MODE=TRUEto simulate success.
GET /health- Basic health endpoint.
- Request observability
- Adds
x-request-idcorrelation header to every response. - Emits structured request completion logs and external Grants.gov call timing logs.
- Adds
Current Limitations
- Partial async migration:
- Grants lookup is async.
- Google API SDK calls are sync and currently executed via route-level thread offload.
- Contract drift:
focus_areais now applied as a simple substring filter; advanced semantic filtering is not implemented yet.
- OAuth lifecycle:
- Access-token-only mode is still supported.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →