Open Helplines
CC0 open-data registry of community support helplines worldwide. TypeScript MCP server providing verified contacts with citation, staleness, and country-context guardrails. 15+ countries indexed.
README
<div align="center">
open-helplines
Stop hallucinating crisis numbers. One MCP import — always verified.
Open data registry of mental health helplines worldwide. CC0. No API key. No lock-in.
<!-- DEMO: Replace the placeholder below once the demo GIF from Task #16 is ready -->

🌐 Visualization Site · 📖 Docs · 💬 Discussions · ❤️ Sponsor
</div>
Quick Start — MCP (Claude Desktop, any MCP host)
Add to your claude_desktop_config.json and restart Claude Desktop — zero configuration, zero API key:
{
"mcpServers": {
"open-helplines": {
"command": "npx",
"args": ["@open-helplines/mcp"]
}
}
}
Then just ask Claude:
"What are the 24/7 crisis lines in Japan?"
"Find a mental health helpline in Brazil that supports English."
"My user seems to be in distress — what's the nearest crisis line for Australia?"
Claude returns verified numbers and URLs verbatim from the registry — never hallucinated.
Three MCP tools available: find_helplines, get_helpline_by_id, list_countries.
See examples/mcp-claude-desktop/README.md for full setup.
Why it matters
The problem: LLMs hallucinate crisis numbers
Mental health chatbots, AI companionship apps, and LLM agents regularly encounter users in crisis. When they try to surface a helpline, they face two bad options:
- Commercial lock-in — directories like ThroughLine charge per query and impose restrictive terms, even when the underlying data is public-domain fact.
- Hallucination risk — without a verified data source, LLMs generate plausible-looking phone numbers that may be wrong. A wrong number when someone is in crisis is not a UX bug — it's a safety failure.
The solution: open-helplines
open-helplines fills the gap with verified, structured, CC0 data and a production-ready MCP server:
| Feature | Detail |
|---|---|
| CC0 data | Public domain. Use in any commercial or non-commercial product, including AI training, without attribution. |
| JSON Schema | Draft 2020-12. TypeScript types and Python Pydantic models generated from the schema. |
| MCP server | npx @open-helplines/mcp — Safe Answer guardrails built in. |
| Emergency First Resolver | Crisis keywords trigger an instant CVD-safe banner with one-tap call/text/chat links. |
| No-Log Crisis Finder | Privacy-preserving search — no query logging, no user fingerprinting. |
| 24 countries, growing | AU, BD, BR, CA, CN, DE, EG, FR, GB, ID, IN, JP, KR, MX, NG, NZ, PH, PK, RU, TR, UA, US, VN, ZA |
Features
🛡️ Safe Answer Guardrails
All MCP tools enforce five guardrails automatically — no configuration needed:
| Guardrail | Behaviour |
|---|---|
| Staleness check | verified_at > 6 months → STALE_DATA warning in response |
| Misroute prevention | record.country ≠ requested country → DIFFERENT_COUNTRY_CONTEXT warning |
| Fallback chain | No data → nearby country → IASP/Befrienders international directory |
| Mandatory citation | Every record includes source + verified_at + last_checked_url_status |
| Hallucination refusal | Unknown country/ID → DATA_NOT_FOUND sentinel (never hallucinate) |
See docs/features/safe-answer-mcp-guardrails.md for the full specification.
🚨 Emergency First Resolver
When a user on the visualization site searches crisis-related terms, a CVD-safe banner instantly surfaces the nearest 24/7 helpline with one-tap call/text/chat links.
See docs/features/emergency-first-resolver.md.
🔍 No-Log Crisis Finder
Privacy-preserving crisis search: no query logging, no user fingerprinting, no analytics on what people are searching for. See docs/features/no-log-crisis-finder.md.
🌍 Visualization Site
Explore the registry visually:
- Globe view — interactive 3D globe with helpline coverage
- Heatmap — choropleth map of coverage density
- Network graph — relationships between organisations
→ kouki-odaka.github.io/open-helplines/en
Integration examples
TypeScript / Node.js
import { loadCountry } from "@open-helplines/core";
const records = await loadCountry("JP");
const crisis = records.filter(r => r.category === "suicide_prevention");
for (const r of crisis) {
console.log(r.name, r.contacts[0].number);
}
Python
from open_helplines import Registry
registry = Registry.from_github() # fetches data/index.json + country files
records = registry.find(country="JP", category="suicide_prevention")
for r in records:
print(r.name, r.contacts[0].number)
Plain JSON (no dependencies)
# Discover all covered countries
curl -s https://raw.githubusercontent.com/Kouki-odaka/open-helplines/main/data/index.json | \
jq '.countries[] | {country, record_count}'
# All helplines for Japan
curl -s https://raw.githubusercontent.com/Kouki-odaka/open-helplines/main/data/countries/jp/helplines.json | \
jq '.records[] | select(.category == "suicide_prevention") | {name, contacts: [.contacts[].number]}'
OpenAI function calling
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "What crisis lines exist in Japan?" }],
tools: [{
type: "function",
function: {
name: "find_helplines",
description:
"Return verified crisis hotlines. Surface phone numbers and URLs verbatim — never generate them.",
parameters: {
type: "object",
properties: {
country: { type: "string", description: "ISO 3166-1 alpha-2 code, e.g. 'JP'" },
category: { type: "string" },
},
required: ["country"],
},
},
}],
});
Full runnable example: examples/openai-function-calling/main.ts
Anthropic tool use
import anthropic
client = anthropic.Anthropic()
response = client.messages.create(
model="claude-opus-4-5",
max_tokens=1024,
tools=[{
"name": "find_helplines",
"description": "Return verified crisis hotlines. Extract contact info verbatim — never paraphrase.",
"input_schema": {
"type": "object",
"properties": {
"country": {"type": "string"},
"category": {"type": "string"},
},
"required": ["country"],
},
}],
messages=[{"role": "user", "content": "Find mental health lines in Australia."}],
)
Full runnable example: examples/anthropic-tool-use/main.py
Local LLM (Ollama)
from openai import OpenAI # Ollama's OpenAI-compatible API
client = OpenAI(base_url="http://localhost:11434/v1", api_key="ollama")
# Same tool definition as above — no API key, fully offline
Full runnable example: examples/local-llama/main.py
JSON Schema
https://raw.githubusercontent.com/Kouki-odaka/open-helplines/main/schemas/helpline.schema.json
JSON Schema Draft 2020-12 — single source of truth for all types and validation. (ADR-001)
Contributing
Data corrections and additions are always welcome — no Discussion needed, open a PR directly.
Data PRs are the fastest way to help: if you know the correct number for a country, add or fix it.
Schema changes require a GitHub Discussion first.
See CONTRIBUTING.md for data format, quality requirements, and commit conventions.
Community
💬 GitHub Discussions — feature requests, country coverage questions, schema proposals, and general conversation.
We especially welcome contributions from mental health professionals and NPO staff who can verify data accuracy for their country.
| Document | Description |
|---|---|
| CODE_OF_CONDUCT.md | Community standards (Contributor Covenant 2.1) |
| SECURITY.md | Vulnerability reporting policy |
| GOVERNANCE.md | Project governance and decision flow |
| Press kit | Logos, descriptions, and key facts for media use |
Sponsor
open-helplines is free, open, and CC0 — and will always be. If you find it useful, consider sponsoring to keep the data verified and the tooling maintained:
- ❤️ Donate via the project site
- 🌟 GitHub Sponsors — coming soon (see FUNDING.yml)
- 🏛️ Open Collective — coming soon
License
open-helplines uses dual licensing:
| Component | License | Why |
|---|---|---|
Data (data/**, dist/by-*/*.json) |
CC0 1.0 | Maximally usable — no friction for crisis tools, AI training, or commercial use |
| Code (TypeScript, Python, scripts, workflows) | Apache-2.0 | Patent protection, attribution-friendly |
You may use the data in any commercial or non-commercial product, including AI systems, without attribution. The code requires the Apache-2.0 notice.
See NOTICE for the dual-license declaration and docs/LICENSING.md for a detailed explanation including commercial use, AI training, and derivative work policies.
Architecture decisions
| ADR | Decision |
|---|---|
| ADR-001 | JSON Schema Draft 2020-12 as single source of truth |
| ADR-002 | CC0 data + Apache-2.0 code dual-license |
| ADR-003 | Per-country file structure |
| ADR-004 | MCP server — stdio transport, 3 tools |
Disclaimer
open-helplines is a developer tool — a directory of contact information, not a crisis service.
- It cannot assess risk, provide counseling, or respond to emergencies.
- Phone numbers are verified periodically, not in real time. Always show the
verified_atdate to end users. - If someone is in immediate danger, direct them to local emergency services (911, 119, 999…) first.
See docs/safety/SAFETY.md for the full safety policy and responsible LLM integration guidelines.
<div align="center">
If open-helplines saves someone from receiving a wrong crisis number, it's worth a ⭐.
</div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。