TI

tar-ive/grants-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

8 stars 6 forks 质量 46 趋势 7

(g) 提供代理赠款的MCP

概览

一个用于全面政府赠款发现和分析的模型背景协议服务器,由Simmer Grants API提供动力. Grant MCP Server是一个基于Python的MCP执行,使用FastMCP提供智能工具来发现,分析和跟踪政府的赠款机会. 它为赠款研究的不同方面提供了多种专门工具,从发现机会到资助趋势分析和机构地貌测绘。 - 搜索和筛选基于关键词、机构、供资类别和资格标准的赠款 -- -- 分析历史供资模式并查明新出现的机会 -- -- 理解不同政府机构的赠款生态系统 -- -- :建立缓存系统以优化API呼叫并改进响应时间 -- -- 获取详细信息,包括供资数额、最后期限、资格要求和联系信息 - 与 FastMCP 为强大的 MCP 服务器执行所建 - 同步...

概述(AI 翻译)

一个用于全面政府赠款发现和分析的模型背景协议服务器,由Simmer Grants API提供动力.

□ 概览

Grant MCP Server是一个基于Python的MCP执行,使用FastMCP提供智能工具来发现,分析和跟踪政府的赠款机会. 它为赠款研究的不同方面提供了多种专门工具,从发现机会到资助趋势分析和机构地貌测绘。

□ 特性

核心能力

  • ** " 机会发现 " **:根据关键词、机构、供资类别和资格标准进行搜索和筛选。
  • ** 基本趋势分析**: 分析历史供资模式并查明新出现的机会
  • ** 机构景观测绘**:了解不同政府机构的赠款生态系统
  • 智能卡通:内置卡通系统以优化API呼叫并改进响应时间
  • 综合赠款详情: 获取详细信息,包括供资数额、最后期限、资格要求和联系信息

技术特征

  • 与FastMCP相建,用于强大的MCP服务器执行

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Grants MCP Server

A Model Context Protocol (MCP) server for comprehensive government grants discovery and analysis, powered by the Simpler Grants API.

Overview

The Grants MCP Server is a Python-based MCP implementation using FastMCP that provides intelligent tools for discovering, analyzing, and tracking government grant opportunities. It offers multiple specialized tools for different aspects of grant research, from opportunity discovery to funding trend analysis and agency landscape mapping.

Features

🔍 Core Capabilities

  • Grant Opportunity Discovery: Search and filter grants based on keywords, agencies, funding categories, and eligibility criteria
  • Funding Trend Analysis: Analyze historical funding patterns and identify emerging opportunities
  • Agency Landscape Mapping: Understand the grant ecosystem across different government agencies
  • Intelligent Caching: Built-in caching system to optimize API calls and improve response times
  • Comprehensive Grant Details: Access detailed information including funding amounts, deadlines, eligibility requirements, and contact information

🛠️ Technical Features

  • Built with FastMCP for robust MCP server implementation
  • Asynchronous Python architecture for high performance
  • Dual Transport Support: stdio (local) and HTTP (containerized)
  • Docker Support: Ready-to-deploy containerized version
  • Configurable caching with TTL and size limits
  • Retry logic and error handling for API resilience
  • Environment-based configuration management
  • Comprehensive test suite with unit, integration, and live tests

Quick Start with Docker 🐳

Prerequisites

1. Clone the Repository

git clone https://github.com/Tar-ive/grants-mcp.git
cd grants-mcp

2. Configure API Key

Important: You must provide your own API key. Never commit API keys to version control.

Option A - Using .env file (Recommended):

# Copy the example file
cp .env.example .env

# Edit .env and add your actual API key
# SIMPLER_GRANTS_API_KEY=your_actual_api_key_here

Option B - Edit docker-compose.yml directly:

environment:
  - SIMPLER_GRANTS_API_KEY=your_actual_api_key_here

3. Build and Run

# Build the Docker image
docker-compose build

# Start the container
docker-compose up -d

# Check if it's running
docker ps | grep grants-mcp

# View logs
docker logs grants-mcp-server

4. Test the Server

# Test with curl
curl -X POST http://localhost:8081/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

# Or use the provided test script
python scripts/test_http_local.py

5. Configure Claude Desktop

Copy the Docker configuration to Claude Desktop:

# For macOS
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →