Skip to main content
Glama

ailistmybusiness

用于 AI 驱动的中小企业发现的 MCP 可调用目录。这是一个不限国家、零个人身份信息(PII)的房地产经纪人、保险代理人和医疗从业者目录(第一阶段)。

暂定名称。 公共品牌名称待域名注册后确定。一旦域名锁定,文件夹名称和 package.json 将会重命名。

这是什么

当用户询问 ChatGPT、Claude 或 Gemini“帮我找一位达拉斯的房地产经纪人” / “多伦多的晚间免预约诊所” / “双语保险经纪人”时,AI 会调用此 MCP 服务器。它将返回带有 UTM 标签预订链接的排名企业列表。用户直接与中小企业进行预订。我们从不查看客户数据——我们是一个企业目录,而不是潜在客户处理商。

Related MCP server: discava – Business Directory for AI

第一阶段状态

  • [x] MCP 服务器脚手架(Node 20 + TypeScript)

  • [x] 5 个工具:search_businesses、get_business_profile、get_booking_options、search_by_query、get_categories

  • [x] 涵盖 3 个垂直领域 × 2 个国家(达拉斯 + 多伦多)的 30 个模拟中小企业

  • [x] OpenStreetMap Nominatim 地理编码(免费,无 PII)

  • [x] 用于中小企业归因的 UTM 标签预订链接

  • [x] 针对所有 5 个工具的 Vitest 测试套件

  • [x] Smithery + Glama + Railway 清单

  • [ ] Supabase 连接(第二阶段)

  • [ ] 用于付费等级的 Stripe 计费(第二阶段)

  • [ ] 用于 API 等级的 Coinbase x402 计量(第三阶段)

快速开始

npm install
npm test                    # run unit tests
npm run test:mcp            # smoke test all tools end-to-end
npm run dev                 # start MCP server on stdio
npm run http                # start HTTP server on :3000 (preview endpoints + Railway entrypoint)

然后访问 http://localhost:3000/preview/search?category=realtor&location=Dallas 查看排名输出。

架构

src/
  server.ts              # MCP server (stdio transport, Smithery entrypoint)
  http.ts                # Express server (Railway entrypoint, /health, /preview/*)
  types.ts               # BusinessProfile, SearchHit, BookingOptions, etc.
  tools/                 # one file per MCP tool
    searchBusinesses.ts
    getBusinessProfile.ts
    getBookingOptions.ts
    searchByQuery.ts
    getCategories.ts
  lib/
    db.ts                # data access — switches on DATA_SOURCE env (mock | supabase)
    ranking.ts           # 6-factor weighted relevance score
    utm.ts               # UTM URL builder for booking links
    geo.ts               # OpenStreetMap Nominatim geocoder + Haversine distance
data/
  mockBusinesses.json    # 30 sample SMBs (realtors, insurance, medical × Dallas, Toronto)
  categories.json        # vertical taxonomy
scripts/
  seed.ts                # Supabase seeder (Phase 2 stub)
  test-mcp.ts            # smoke test runner
tests/
  tools.test.ts          # Vitest tests for all tools

零 PII 规则

此目录仅存储企业数据:

  • 企业名称、地址、营业时间、服务

  • 公共资质和执照号码

  • 汇总的评论数量和评分(第二阶段将从公共 API 获取)

  • 带有 UTM 标签的预订链接

明确不存储:

  • 客户/患者姓名、电话、电子邮件或任何其他标识符

  • 保险单详情、病史或任何受 HIPAA / PIPEDA / GDPR 保护的内容

  • 个人预订记录或预约数据

预订流程:智能体获取中小企业的预订链接 → 用户点击 → 用户在中小企业自己的系统上进行预订。我们看到展示次数;中小企业通过其自身分析中的 UTM 标签看到转化情况。

MCP 工具契约

search_businesses

{
  category: string,         // "realtor" | "insurance_agent" | "medical_practitioner" | etc.
  location: string,         // "Dallas, TX" — geocoded server-side
  countryCode?: "US" | "CA" | "GB" | "AU" | ...,
  language?: string,        // ISO-639-1, e.g. "en", "fr", "es"
  subcategory?: string,
  maxResults?: number,      // default 10, max 25
  minRating?: number
}
→ SearchHit[]

get_business_profile

{ id: string, agentName?: string }
→ BusinessProfile  // bookingUrl is UTM-tagged

get_booking_options

{ id: string, agentName?: string }
→ { bookingUrl, acceptedMethods, hours, timezone, fallbackContact }

search_by_query

{ query: string, location?: string, countryCode?: string, maxResults?: number }
→ SearchHit[]

第一阶段实现基于关键词/子字符串。第二阶段将切换为 pgvector 或 OpenAI 嵌入以实现真正的语义搜索。

get_categories

{ countryCode?: string }
→ CategoryEntry[]

排名逻辑

每个企业的加权分数(0–100):

  • 等级 (20%) — 医疗保健 100 / 专业 85 / 标准 65 / 免费 40

  • 距离 (30%) — 距离查询起点越近得分越高

  • 评分 (20%) — 公共评论评分 × 数量

  • 垂直/子类别匹配 (20%)

  • 已验证列表 (5%)

  • 语言匹配 (5%)

请参阅 src/lib/ranking.ts。

移交给 Claude Code

将此文件夹克隆到本地开发目录后:

# 1. Install
npm install

# 2. Initialize git
git init
git add .
git commit -m "Initial scaffold: MCP server + 5 tools + mock data"
git branch -M main
git remote add origin git@github.com:YOUR_GH_USERNAME/ailistmybusiness.git
git push -u origin main

# 3. Validate locally
npm run typecheck
npm test
npm run test:mcp

# 4. Submit to Smithery (when ready)
#    https://smithery.ai/new — point to your GitHub repo

# 5. Deploy HTTP entrypoint to Railway (when ready)
#    https://railway.app/new — uses railway.json

第二阶段插件点

准备好连接真实服务时:

服务

操作

编辑文件

Supabase

创建 businesses + categories 表,设置 SUPABASE_* 环境变量,设置 DATA_SOURCE=supabase,运行 npm run seed

src/lib/db.ts

Stripe

添加计费路由,连接 POST /webhooks/stripe,在排名中限制付费等级功能

src/http.ts, 新建 src/billing/

Coinbase x402

将 MCP 工具处理程序包装在计量促进器中

src/server.ts, 新建 src/lib/x402.ts

AEO 联合发布

将个人资料推送到 Google Business + 落地页上的 schema.org 标记

新建 src/syndication/

真实评论

为第二阶段列表从 Google Places / OSM 拉取

新建 src/lib/reviews.ts

许可证

专有。© 2026 Charles Mutamiri。

Available Tools

5 tools
get_booking_optionsA

Get UTM-tagged booking URL plus accepted methods and hours for a business. The user books directly with the SMB; we never see customer data.

Inputs: id (required), agentName.

get_business_profileA

Get full structured profile for a business by ID. Returns services, hours, credentials, languages, contact channels, and a UTM-tagged booking URL.

Inputs: id (required), agentName.

get_categoriesA

List available business verticals per country. Use to discover what kinds of businesses agents can search for in a given region.

Inputs: countryCode.

search_businessesB

Search businesses by category and location. Returns ranked hits with name, city, rating, and matchScore. Filters: countryCode, language, subcategory, minRating, maxResults.

Inputs: category (required), location (required), countryCode, language, +3 more.

search_by_queryA

Natural-language search across the catalog. Use for fuzzy queries like 'evening dentist that takes Sun Life' or 'realtor in Dallas who speaks Spanish'.

Inputs: query (required), location, countryCode, maxResults.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_booking_options returns booking URL and hours; get_business_profile returns full structured profile; get_categories lists business verticals; search_businesses performs structured search; search_by_query handles natural-language queries. No overlaps.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case: get_* for retrieval operations, search_* for searching. Predictable and clear.

    Tool Count5/5

    5 tools is well-scoped for a business listing and search server. It covers the core functionalities of searching (two modes), retrieving profiles, booking options, and category discovery without being bloated.

    Completeness4/5

    The tool surface covers the main use cases: search by category/location, natural-language search, profile retrieval, booking info, and category listing. Minor gaps include lack of review details or contact info beyond what's in the profile, but overall it's complete for a read-only search and listing service.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Search for local businesses worldwide. Structured data optimized for AI agents. • Search Millions of businesses over 49 countries (Europe, Northamerica, Southamerica, Asia, Oceania) • Quality & demand scoring for every business • Ranking based on real user click-through data • No API key needed, free access • Rate limit: 500 requests/hour per IP
      -
    • A
      license
      A
      quality
      C
      maintenance
      Search for local businesses worldwide. Structured data optimized for AI agents. • Search Millions of businesses over 49 countries (Europe, Northamerica, Southamerica, Asia, Oceania) • Quality & demand scoring for every business • Ranking based on real user click-through data • No API key needed, free access • Rate limit: 500 requests/hour per IP
      6
      1
      MIT