Skip to main content
Glama
shrizasom

Grant Workflow MCP Server

by shrizasom

Grant Workflow MCP Server

A small Python MCP server for safely querying grant applications and previewing or committing scoped reviewer reassignments. It was built for the WizeHive take-home exercise.

Stack

  • Python, FastMCP, Pydantic, and PyMongo

  • MongoDB in Docker for local data

  • Anthropic tool-use loop for the optional natural-language agent

  • A JSON golden set and runnable evaluation script

Setup

  1. Create an environment and install dependencies:

    python -m venv .venv
    .\.venv\Scripts\Activate.ps1
    pip install -r requirements.txt
    Copy-Item .env.example .env
  2. Start MongoDB and seed the supplied JSON-lines files:

    docker compose up -d
    .\scripts\seed.ps1

    The seed script requires the MongoDB Database Tools mongoimport executable. Source data remains in candidate_packet/data/; this avoids maintaining a duplicate copy.

  3. Start the MCP server over stdio:

    python -m server.mcp_server

Agent and evaluations

Set ANTHROPIC_API_KEY in .env, then run:

python -m evals.run_evals

The runner prints pass/fail per golden question, aggregate accuracy, per-question latency, and total input/output tokens. It intentionally exits rather than pretending to evaluate if no API key is configured.

Run the lightweight validation tests with pytest.

Tools

The four required tools are search_applications, get_application, cycle_summary, and reassign_reviewer. A very narrow read-only reviewer_workload_summary helper is included because the required agent question ("Which reviewer has the most active assignments?") cannot be answered from the four specified data paths. It prevents the agent from guessing or receiving raw reviewer documents.

reassign_reviewer is preview-first: dry_run=True by default, a cycle or status scope is mandatory, commit requires the exact preview count, and commits over 50 records are rejected. The MCP server never prompts on standard input; confirmation is supplied through the structured expectedCount field so an agent session cannot hang. See DESIGN.md for residual risks.

MCP Server:

Running the MCP server once through MCP Inspector, confirming the five exposed tool names and schemas.

Running safe verification calls to confirm tools:

  1. search_application

  1. get_application

  2. cycle_summary

  3. reviewer_workload_summary

  4. reassign_reviewer

-
license - not tested
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shrizasom/grant-management-platform'

If you have feedback or need assistance with the MCP directory API, please join our Discord server