{"id":50993874,"url":"https://github.com/cyanheads/reliefweb-mcp-server","last_synced_at":"2026-06-20T06:32:38.197Z","repository":{"id":359986625,"uuid":"1247701182","full_name":"cyanheads/reliefweb-mcp-server","owner":"cyanheads","description":"Search ReliefWeb humanitarian reports, disasters, jobs, training, and country profiles via MCP. STDIO or Streamable HTTP.","archived":false,"fork":false,"pushed_at":"2026-05-24T12:21:50.000Z","size":395,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T14:19:33.287Z","etag":null,"topics":["ai-agent","bun","crisis-data","cyanheads","disasters","humanitarian","humanitarian-aid","mcp","mcp-server","model-context-protocol","ocha","reliefweb","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyanheads.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-23T17:00:36.000Z","updated_at":"2026-05-24T12:21:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cyanheads/reliefweb-mcp-server","commit_stats":null,"previous_names":["cyanheads/reliefweb-mcp-server"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cyanheads/reliefweb-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Freliefweb-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Freliefweb-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Freliefweb-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Freliefweb-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyanheads","download_url":"https://codeload.github.com/cyanheads/reliefweb-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Freliefweb-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34560265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","bun","crisis-data","cyanheads","disasters","humanitarian","humanitarian-aid","mcp","mcp-server","model-context-protocol","ocha","reliefweb","typescript"],"created_at":"2026-06-20T06:32:37.346Z","updated_at":"2026-06-20T06:32:38.168Z","avatar_url":"https://github.com/cyanheads.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e@cyanheads/reliefweb-mcp-server\u003c/h1\u003e\n  \u003cp\u003e\u003cb\u003eSearch ReliefWeb humanitarian reports, disasters, jobs, training, and country profiles via MCP. STDIO or Streamable HTTP.\u003c/b\u003e\n  \u003cdiv\u003e9 Tools • 3 Resources • 1 Prompt\u003c/div\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Version](https://img.shields.io/badge/Version-0.1.11-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square\u0026logo=docker\u0026logoColor=white)](https://github.com/users/cyanheads/packages/container/package/reliefweb-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/reliefweb-mcp-server?style=flat-square\u0026logo=npm\u0026logoColor=white)](https://www.npmjs.com/package/@cyanheads/reliefweb-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.2-blueviolet.svg?style=flat-square)](https://bun.sh/)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge\u0026logo=anthropic\u0026logoColor=white)](https://github.com/cyanheads/reliefweb-mcp-server/releases/latest/download/reliefweb-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=reliefweb-mcp-server\u0026config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvcmVsaWVmd2ViLW1jcC1zZXJ2ZXIiXSwiZW52Ijp7IlJFTElFRldFQl9BUFBfTkFNRSI6InlvdXItYXBwLW5hbWUifX0=) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge\u0026logo=visualstudiocode\u0026logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22reliefweb-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Freliefweb-mcp-server%22%5D%2C%22env%22%3A%7B%22RELIEFWEB_APP_NAME%22%3A%22your-app-name%22%7D%7D)\n\n[![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-67E8F9?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n**Public Hosted Server:** [https://reliefweb.caseyjhand.com/mcp](https://reliefweb.caseyjhand.com/mcp)\n\n\u003c/div\u003e\n\n---\n\n## Tools\n\n9 tools for working with ReliefWeb humanitarian data:\n\n| Tool | Description |\n|:---|:---|\n| `reliefweb_search_reports` | Search humanitarian reports with filtering by country, disaster, format, theme, language, source, and date |\n| `reliefweb_get_report` | Fetch a single report by numeric ID with full body text and metadata |\n| `reliefweb_search_disasters` | Search disasters by type, country, status, GLIDE number, and date range |\n| `reliefweb_get_disaster` | Fetch a disaster record with profile, key content links, appeals, and response plans |\n| `reliefweb_get_country` | Fetch a country profile by ISO3 code with overview, appeals, and curated links |\n| `reliefweb_list_countries` | List all countries tracked by ReliefWeb, filterable to active humanitarian situations |\n| `reliefweb_search_jobs` | Search humanitarian job listings by country, organization, career category, and experience level |\n| `reliefweb_search_training` | Search training and learning opportunities by format, country, career category, and date |\n| `reliefweb_list_sources` | Browse contributing organizations by name and type |\n\n### `reliefweb_search_reports`\n\nSearch humanitarian reports on ReliefWeb with rich filtering.\n\n- Full-text search across title, body, and key metadata fields\n- Filtering by country (ISO3), disaster ID, format, theme, language, and source organization\n- Date range filtering on source publication date\n- Raw filter object for compound conditions not covered by named params\n- Pagination via offset and limit (up to 1,000 per call)\n- Optional `include_archived=true` for historical research (includes expired and archived content)\n- Returns paginated summaries — use `reliefweb_get_report` to fetch full body text\n- Rate limit: 1,000 calls/day\n\n---\n\n### `reliefweb_get_report`\n\nFetch a single ReliefWeb report by its numeric ID with full body text.\n\n- Full body HTML, all metadata, and file attachment URLs\n- Use after `reliefweb_search_reports` to retrieve document content (10–100KB each)\n- Returns structured `not_found` when the ID doesn't exist\n\n---\n\n### `reliefweb_search_disasters`\n\nSearch active and historical disasters on ReliefWeb.\n\n- Filtering by disaster type (Earthquake, Flood, Cyclone, etc.), country, and status\n- GLIDE number lookup for cross-system disaster correlation\n- Date range filtering on disaster creation date\n- Status values: `alert`, `current`, `past`, `alert-archive`, `archive`; multiple values comma-separated\n- Optional `include_archived=true` for historical research\n- Returns IDs for use with `reliefweb_get_disaster` and as `disaster_id` filter in `reliefweb_search_reports`\n\n---\n\n### `reliefweb_get_disaster`\n\nFetch a disaster record by ReliefWeb numeric ID with full details.\n\n- Full description, profile overview, affected countries, and GLIDE number\n- Curated key content links from the ReliefWeb editorial team\n- Active appeals and response plans linked to the disaster\n- Useful external links curated by ReliefWeb editors\n\n---\n\n### `reliefweb_get_country`\n\nFetch a country profile from ReliefWeb by ISO3 code.\n\n- Situation overview text curated by OCHA editors\n- Key content links maintained by ReliefWeb editors\n- Active humanitarian appeals and response plans\n- Useful external links for the country\n- Country profiles are the authoritative situation summary for humanitarian responders\n\n---\n\n### `reliefweb_list_countries`\n\nList all countries and territories tracked by ReliefWeb.\n\n- Optional `crisis_only=true` to limit to active humanitarian situations (status alert or current)\n- Returns ISO3 codes, status, and canonical URLs — use ISO3 with `reliefweb_get_country`\n- Pagination up to 1,000 entries per call\n\n---\n\n### `reliefweb_search_jobs`\n\nSearch humanitarian job listings on ReliefWeb.\n\n- Filtering by country, organization short name, career category, theme, and experience level\n- Career category values: Programme and Project Management, Information and Communications Technology, Logistics and Telecommunications, and others\n- Returns current open positions — archived jobs excluded by default\n- Pagination with closing date and canonical URL per listing\n\n---\n\n### `reliefweb_search_training`\n\nSearch humanitarian training and learning opportunities.\n\n- Covers workshops, e-learning, conferences, seminars, and other capacity-building events\n- Filtering by country, source, format, career category, and language\n- Date range filtering on training start date (`date_start_from` / `date_start_to`)\n- Distinct from report date fields — uses `date.start` / `date.end`\n\n---\n\n### `reliefweb_list_sources`\n\nBrowse organizations that contribute content to ReliefWeb.\n\n- Optional filtering by name text or organization type (Government, International Organization, NGO, Academia)\n- Returns short names, types, organization URLs, and homepage URLs\n- Use `shortname` with the `source` filter in `reliefweb_search_reports`, `reliefweb_search_jobs`, and `reliefweb_search_training`\n\n## Resources and prompt\n\n| Type | Name | Description |\n|:---|:---|:---|\n| Resource | `reliefweb://reports/{id}` | Full report record by numeric ID — metadata, body text, and file URLs |\n| Resource | `reliefweb://disasters/{id}` | Disaster record by numeric ID — type, status, GLIDE, description, and content links |\n| Resource | `reliefweb://countries/{iso3}` | Country profile by ISO3 code — overview, situation summary, and active response plans |\n| Prompt | `reliefweb_crisis_briefing` | Generate a structured humanitarian briefing for a country or disaster |\n\n## Features\n\nBuilt on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core):\n\n- Declarative tool definitions — single file per tool, framework handles registration and validation\n- Unified error handling across all tools\n- Pluggable auth (`none`, `jwt`, `oauth`)\n- Swappable storage backends: `in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`\n- Structured logging with optional OpenTelemetry tracing\n- Runs locally (stdio/HTTP) or on Cloudflare Workers from the same codebase\n\nReliefWeb-specific:\n\n- Full coverage of six ReliefWeb content types: reports, disasters, countries, jobs, training, sources\n- Compound filter builder supporting nested AND/OR conditions for the ReliefWeb API v2\n- `RELIEFWEB_APP_NAME` validated at startup (required by the API since November 2025)\n- 1,000 calls/day quota awareness — prominently documented on each tool\n\nAgent-friendly output:\n\n- Body text excluded from search results by design — agents fetch it explicitly with `reliefweb_get_report` to control context budget\n- Recovery hints on empty results — echoes applied filters and suggests how to broaden\n- Typed `not_found` error contracts on get-by-ID tools with actionable recovery text\n\n## Getting started\n\n### Prerequisites\n\n- [Bun v1.3.2](https://bun.sh/) or higher.\n- A **pre-approved ReliefWeb appname** — register at [ReliefWeb API](https://reliefweb.int/help/api) and set `RELIEFWEB_APP_NAME`. The API has required pre-approved appnames since November 2025; requests without one are rejected.\n\n### Public Hosted Instance\n\nA public instance is available at `https://reliefweb.caseyjhand.com/mcp` — no installation required. Point any MCP client at it via Streamable HTTP:\n\n```json\n{\n  \"mcpServers\": {\n    \"reliefweb-mcp-server\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"https://reliefweb.caseyjhand.com/mcp\"\n    }\n  }\n}\n```\n\n### Self-Hosted / Local\n\nAdd the following to your MCP client configuration file.\n\n```json\n{\n  \"mcpServers\": {\n    \"reliefweb-mcp-server\": {\n      \"type\": \"stdio\",\n      \"command\": \"bunx\",\n      \"args\": [\"@cyanheads/reliefweb-mcp-server@latest\"],\n      \"env\": {\n        \"MCP_TRANSPORT_TYPE\": \"stdio\",\n        \"MCP_LOG_LEVEL\": \"info\",\n        \"RELIEFWEB_APP_NAME\": \"your-app-name\"\n      }\n    }\n  }\n}\n```\n\nOr with npx (no Bun required):\n\n```json\n{\n  \"mcpServers\": {\n    \"reliefweb-mcp-server\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@cyanheads/reliefweb-mcp-server@latest\"],\n      \"env\": {\n        \"MCP_TRANSPORT_TYPE\": \"stdio\",\n        \"MCP_LOG_LEVEL\": \"info\",\n        \"RELIEFWEB_APP_NAME\": \"your-app-name\"\n      }\n    }\n  }\n}\n```\n\nFor Streamable HTTP, set the transport and start the server:\n\n```sh\nMCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 RELIEFWEB_APP_NAME=your-app-name bun run start:http\n# Server listens at http://localhost:3010/mcp\n```\n\n### Installation\n\n1. **Clone the repository:**\n\n```sh\ngit clone https://github.com/cyanheads/reliefweb-mcp-server.git\n```\n\n2. **Navigate into the directory:**\n\n```sh\ncd reliefweb-mcp-server\n```\n\n3. **Install dependencies:**\n\n```sh\nbun install\n```\n\n## Configuration\n\nAll configuration is validated at startup via Zod schemas. Key environment variables:\n\n| Variable | Description | Default |\n|:---|:---|:---|\n| `RELIEFWEB_APP_NAME` | **Required.** Pre-approved appname for the ReliefWeb API v2. Register at reliefweb.int/help/api. | — |\n| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http` | `stdio` |\n| `MCP_HTTP_PORT` | HTTP server port | `3010` |\n| `MCP_HTTP_ENDPOINT_PATH` | HTTP endpoint path where the MCP server is mounted | `/mcp` |\n| `MCP_PUBLIC_URL` | Public origin override for TLS-terminating reverse-proxy deployments | none |\n| `MCP_AUTH_MODE` | Authentication: `none`, `jwt`, or `oauth` | `none` |\n| `MCP_LOG_LEVEL` | Log level (`debug`, `info`, `warning`, `error`, etc.) | `info` |\n| `MCP_GC_PRESSURE_INTERVAL_MS` | Opt-in Bun-only forced-GC pressure loop (ms). Try `60000` if heap growth is observed under sustained HTTP load. | `0` (disabled) |\n| `LOGS_DIR` | Directory for log files (Node.js only). | `\u003cproject-root\u003e/logs` |\n| `STORAGE_PROVIDER_TYPE` | Storage backend: `in-memory`, `filesystem`, `supabase`, `cloudflare-kv/r2/d1` | `in-memory` |\n| `OTEL_ENABLED` | Enable OpenTelemetry | `false` |\n\n## Running the server\n\n### Local development\n\n- **Build and run the production version**:\n\n  ```sh\n  # One-time build\n  bun run rebuild\n\n  # Run the built server\n  bun run start:http\n  # or\n  bun run start:stdio\n  ```\n\n- **Run checks and tests**:\n  ```sh\n  bun run devcheck  # Lints, formats, type-checks, and more\n  bun run test      # Runs the test suite\n  ```\n\n## Project structure\n\n| Directory | Purpose |\n|:---|:---|\n| `src/mcp-server/tools` | Tool definitions (`*.tool.ts`). Nine tools across reports, disasters, countries, jobs, training, and sources. |\n| `src/mcp-server/resources` | Resource definitions. Report, disaster, and country resources. |\n| `src/mcp-server/prompts` | Prompt definitions. Crisis briefing prompt. |\n| `src/services/reliefweb` | ReliefWeb API service layer — HTTP client, filter builder, and response normalizers for all six content types. |\n| `src/config` | Server-specific environment variable parsing and validation with Zod. |\n| `tests/` | Unit and integration tests, mirroring the `src/` structure. |\n\n## Development guide\n\nSee [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:\n\n- Handlers throw, framework catches — no `try/catch` in tool logic\n- Use `ctx.log` for logging, `ctx.state` for storage\n- Register new tools and resources in the `createApp()` arrays\n\n## Contributing\n\nIssues and pull requests are welcome. Run checks and tests before submitting:\n\n```sh\nbun run devcheck\nbun run test\n```\n\n## License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanheads%2Freliefweb-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyanheads%2Freliefweb-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanheads%2Freliefweb-mcp-server/lists"}