npm @riv-lc/areacode-mcpstdioMITupdated 2mo ago
North American (NANP) area-code & phone-number intelligence for AI agents.
AreaCode fyi MCP Server 能做什么?
areacode-mcp
North American (NANP) area-code & phone-number intelligence for AI agents.
An MCP server that gives Claude, Cursor, and
other agents a small, trusted reference for US & Canada phone numbering — area
codes, NANP validation, local time, city/state coverage, overlays, and
scam/spoofing context. Backed by areacode.fyi, which
publishes directly from the official NANPA numbering database. Every result
includes a canonical areacode.fyi URL and the source date.
Scope. This is area-code-level reference and education — not a carrier/identity API. It does not return a caller's identity, exact location, or live/ported carrier, and caller ID can be spoofed, so a number's area code never proves who is calling. For caller identity you need a carrier-grade (LRN/HLR) provider.
Install
Run it with npx (no install needed) — add it to your client's MCP config.
Claude Desktop (claude_desktop_config.json) / Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"areacode": {
"command": "npx",
"args": ["-y", "@riv-lc/areacode-mcp"]
}
}
}
That's it — restart your client and the tools below are available.
Published on the official MCP Registry as io.github.riv-lc/areacode-mcp, and
on npm.
Remote (hosted) — for ChatGPT, Claude.ai, and web clients
No install. Add the hosted server as a connector URL — same 8 tools, no key:
https://mcp.areacode.fyi/mcp
(legacy SSE clients: https://mcp.areacode.fyi/sse)
Tools
| Tool | What it does |
|---|---|
lookup_area_code |
Country, state/province, cities, time zone, current local time, overlays, nearby codes |
lookup_phone_number |
Parse/validate a NANP number → area code, region, local time, E.164 |
lookup_carrier |
Assigned carrier, line type (wireless/landline), and rate center for a number's NPA-NXX block (block-allocation data, not live/ported; covers nearly every US/Canada code) |
area_codes_for_city |
Area codes serving a city (optionally disambiguated by state) |
area_codes_for_state |
Every area code in a US state or Canadian province |
is_scam_area_code |
Scam/spoofing context for an area code + an aggregate of FTC Do Not Call complaints filed about numbers using that code |
check_number_reputation |
Unverified community signal (low / mid / high) plus public FTC Do Not Call complaint data (count, % robocalls, top subject) for a number |
explain_area_code_topic |
Source-backed explainers: neighbor spoofing, overlays vs splits, toll-free, area-code-vs-country-code, temporary numbers |
Example prompts
- "A lead entered phone number +1 702-555-0199. Where are they likely located and what time is it there?"
- "I got a call from 469 — is that area code suspicious?"
- "Which area codes cover Las Vegas?"
- "Normalize this list of US/Canada numbers and flag any that are invalid or toll-free."
- "Explain neighbor spoofing for a help-center article."
Configuration
| Env var | Default | Purpose |
|---|---|---|
AREACODE_API_BASE |
https://areacode.fyi |
Point at a different host (e.g. a self-hosted or staging API) |
Data & sourcing
Tools call the public https://areacode.fyi/api/v1 JSON API, which reads the
same dataset the site renders — sourced from the official North American
Numbering Plan Administrator (NANPA) database and refreshed monthly. Each
response carries source, canonical_url, and data_date so answers can cite
where the data came from.
The check_number_reputation signal is unverified and crowd-sourced
(low = people looked the number up; mid/high = it has user reports). It is
never proof that a specific number is fraudulent.
License
MIT © Reindex Ventures. Built for areacode.fyi.
安装
把 AreaCode fyi MCP Server 添加到你的客户端。选择你正在使用的那个。
claude mcp add areacode-mcp -- npx -y @riv-lc/areacode-mcpcodex mcp add areacode-mcp -- npx -y @riv-lc/areacode-mcpamp mcp add areacode-mcp -- npx -y @riv-lc/areacode-mcp{
"mcpServers": {
"areacode-mcp": {
"command": "npx",
"args": [
"-y",
"@riv-lc/areacode-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"areacode-mcp": {
"command": "npx",
"args": [
"-y",
"@riv-lc/areacode-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"areacode-mcp","command":"npx","args":["-y","@riv-lc/areacode-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"areacode-mcp": {
"command": "npx",
"args": [
"-y",
"@riv-lc/areacode-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"areacode-mcp": {
"command": "npx",
"args": [
"-y",
"@riv-lc/areacode-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"areacode-mcp": {
"command": "npx",
"args": [
"-y",
"@riv-lc/areacode-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"areacode-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@riv-lc/areacode-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"areacode-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@riv-lc/areacode-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @riv-lc/areacode-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
8 个工具
AreaCode fyi MCP Server 向已连接的智能体提供 8 个工具。
- lookup_area_code
- Country, state/province, cities, time zone, current local time, overlays, nearby codes
- lookup_phone_number
- Parse/validate a NANP number → area code, region, local time, E.164
- lookup_carrier
- Assigned carrier, line type (wireless/landline), and rate center for a number's NPA-NXX block (block-allocation data, **not** live/ported; covers nearly every US/Canada code)
- area_codes_for_city
- Area codes serving a city (optionally disambiguated by state)
- area_codes_for_state
- Every area code in a US state or Canadian province
- is_scam_area_code
- Scam/spoofing context for an area code + an aggregate of FTC Do Not Call complaints filed about numbers using that code
- check_number_reputation
- Unverified community signal (low / mid / high) **plus public FTC Do Not Call complaint data** (count, % robocalls, top subject) for a number
- explain_area_code_topic
- Source-backed explainers: neighbor spoofing, overlays vs splits, toll-free, area-code-vs-country-code, temporary numbers
评分
75 / 100
良好
- 文档25/25
- 维护16/25
- 可信度16/20
- 能力6/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 71 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 8 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.2.2最新 | 2026年6月22日 |