Apitier

io.github.apitier由 GitHub 账号 apitier 发布v1.0.2更新于 Oct 25, 2026

APITier utility APIs as MCP tools: validation, UK/India address lookup, barcode/QR, data conversion.

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

APITier 实用工具 API 服务器,让助手校验邮箱、电话、增值税号和英国银行信息,查询英国/印度地址与企业,并生成条码、二维码及转换数据格式。

可以做什么
校验邮箱、电话号码、英国及欧盟增值税号,以及英国排序码和账号,并在可用时返回国家、运营商和注册企业信息。按 Royal Mail PAF 查询英国地址和邮编,解析 UPRN 与 UDPRN 记录,并查询印度 PIN 码对应地区。在 Companies House 上核查英国公司,包括状态、SIC 代码和重要控制人,并执行综合的英国 KYC 入驻检查,返回通过/复核/不通过结论和风险评分。生成条码和二维码图片,并在 CSV、JSON、XML 与 YAML 之间转换数据。
适用场景
适合助手需要核对联系方式或税务信息、填写英国地址表单、在签约或入驻前审查英国供应商与企业,或生成条码、二维码及做格式转换的场景。更偏向合规、KYC 和数据录入流程,而非通用网络检索。
运行要求
通过 npx 在本地运行(需 Node.js),或连接 APITier 的托管 HTTP 端点。需要 APITier 账号和 MCP 密钥,或分别提供邮编、潜在客户、邮箱、电话、增值税、印度 PIN 码、条码和数据转换的服务密钥。综合 KYC 工具需要邮编、潜在客户和增值税三项订阅;排序码校验无需密钥。需要访问 APITier 的网络连接。
安装前请注意
会通过环境变量索取多个密钥,请避免写入共享配置。托管模式将 MCP 密钥作为 URL 查询参数传递,可能泄露到日志中。查询会把地址、公司编号、邮箱、电话和增值税号发送到 APITier 服务器。工具本身是只读查询和生成操作,但订阅可能由 APITier 计费。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Apitier,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@apitier/mcp-server

MCP (Model Context Protocol) server exposing all APITier utility APIs as tools for AI agents.

Two integration modes:

ModeBest for
Hosted HTTP — https://mcp.apitier.comAnthropic connector directory, remote agents, server-to-server
stdio (npx) — runs locallyClaude Desktop, Cursor, Windsurf, local agents

Both modes use the same MCP Key — one key unlocks all your subscribed services.

Postman collection: import the ready-made collection to test all endpoints instantly: https://raw.githubusercontent.com/apitier/apitier-mcp-server/main/postman/APITier%20MCP%20Server.postman_collection.json

In Postman: Import → Link → paste URL → set mcp_api_key collection variable.


Tools Available

🇬🇧 UK KYC Onboarding

ToolDescription
kyc_onboard_ukFull UK business onboarding check in one call. Validates VAT, verifies Companies House, retrieves PSC (beneficial owners), and confirms the registered address. Returns PASS / REVIEW / FAIL, a risk score, and the full data bundle. Requires postcode + vat + leadAgent subscriptions.

Example output:

json
{  "decision": "PASS",  "risk_score": 95,  "flags": [],  "checks": {    "company": { "status": "active", "data": { ... } },    "psc":     { "status": "found",  "data": { ... } },    "vat":     { "status": "valid",  "data": { ... } },    "address": { "status": "verified", "data": { ... } }  }}

🇬🇧 UK Address & Property

ToolDescription
verify_uk_addressVerify a UK address against Royal Mail PAF — returns canonical address, UPRN, UDPRN, and per-delivery-point geocode
lookup_uprnLook up a full AddressBase record by UDPRN — returns UPRN, PAF canonical address, coordinates. Use UDPRN from verify_uk_address
lookup_uk_postcodeUK postcode → full PAF address list + district, ward, county, country, and geocode

🇬🇧 UK Business & Compliance

ToolDescription
verify_uk_companyLook up a UK company on Companies House by name or number — status, address, SIC codes, filing health
get_company_pscPersons with Significant Control register for a UK company — required for AML beneficial ownership checks
validate_sort_codeValidate a UK sort code and optionally a bank account number (Vocalink modulus check). No API key required.

🇬🇧🇪🇺 UK + EU VAT Compliance

ToolDescription
validate_vatValidate UK and EU VAT numbers — checks HMRC for GB numbers, EU VIES for all other country prefixes. Returns registered business name and address. Accepts any country prefix (e.g. GB123456789, DE123456789, FR12345678901).

🌍 Global Identity

ToolDescription
validate_emailValidate email — syntax, MX, SMTP reachability, disposable domain check. Works for any email address globally.
validate_phoneValidate and parse phone numbers — accepts any international format, returns country, carrier, and line type.

🇮🇳 India

ToolDescription
lookup_india_pincodeIndian PIN code → state / district / town

🌍 Utilities

ToolDescription
generate_barcodeGenerate barcode image (Code128, EAN-13, UPC, and more)
generate_qrcodeGenerate QR code image with optional logo and colour
convert_dataConvert between CSV, JSON, XML, YAML

Quick Start

1. Get your MCP Key

Sign up at apitier.com → Account → AI & MCP → Generate MCP Key.

Your MCP Key (mcp_...) automatically unlocks the tools for every APITier service you have subscribed to. No per-service configuration needed.


Hosted HTTP Endpoint

POST https://mcp.apitier.com/mcp?x-api-key=YOUR_MCP_KEY

Pass your MCP Key as the x-api-key query parameter. The endpoint resolves your subscribed services and returns only the tools available to you.

Required headers:

http
Content-Type: application/jsonAccept: application/json, text/event-stream

Test with curl:

bash
curl -s -X POST 'https://mcp.apitier.com/mcp?x-api-key=YOUR_MCP_KEY' \  -H 'Content-Type: application/json' \  -H 'Accept: application/json, text/event-stream' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | jq .

Call a tool:

bash
curl -s -X POST 'https://mcp.apitier.com/mcp?x-api-key=YOUR_MCP_KEY' \  -H 'Content-Type: application/json' \  -H 'Accept: application/json, text/event-stream' \  -d '{    "jsonrpc": "2.0",    "id": 1,    "method": "tools/call",    "params": {      "name": "verify_uk_company",      "arguments": { "q": "03977902" }    }  }' | jq .

Health check:

bash
curl https://mcp.apitier.com/health

Use with any HTTP MCP client

json
{  "mcpServers": {    "apitier": {      "url": "https://mcp.apitier.com/mcp?x-api-key=YOUR_MCP_KEY"    }  }}

Claude Desktop (stdio)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

With MCP Key (recommended — single key, all subscribed tools):

json
{  "mcpServers": {    "apitier": {      "command": "npx",      "args": ["-y", "@apitier/mcp-server"],      "env": {        "APITIER_MCP_KEY": "mcp_your-key-here"      }    }  }}

With individual service keys (if you prefer explicit control):

json
{  "mcpServers": {    "apitier": {      "command": "npx",      "args": ["-y", "@apitier/mcp-server"],      "env": {        "APITIER_POSTCODE_KEY":     "key-from-postcode-subscription",        "APITIER_LEAD_AGENT_KEY":   "key-from-lead-agent-subscription",        "APITIER_EMAIL_KEY":        "key-from-email-subscription",        "APITIER_PHONE_KEY":        "key-from-phone-subscription",        "APITIER_VAT_KEY":          "key-from-vat-subscription",        "APITIER_BARCODE_KEY":      "key-from-barcode-subscription",        "APITIER_CONVERT_DATA_KEY": "key-from-data-conversion-subscription"      }    }  }}

Restart Claude Desktop after saving. Only tools for your active subscriptions will appear.


Cursor / Windsurf / VS Code

json
{  "mcp": {    "servers": {      "apitier": {        "command": "npx",        "args": ["-y", "@apitier/mcp-server"],        "env": {          "APITIER_MCP_KEY": "mcp_your-key-here"        }      }    }  }}

LangChain (Python)

stdio:

python
from mcp import ClientSession, StdioServerParametersfrom mcp.client.stdio import stdio_clientfrom langchain_mcp_adapters.tools import load_mcp_toolsfrom langgraph.prebuilt import create_react_agentfrom langchain_anthropic import ChatAnthropic
async def main():    server_params = StdioServerParameters(        command="npx",        args=["-y", "@apitier/mcp-server"],        env={"APITIER_MCP_KEY": "mcp_your-key-here"},    )
    async with stdio_client(server_params) as (read, write):        async with ClientSession(read, write) as session:            await session.initialize()            tools = await load_mcp_tools(session)
            model = ChatAnthropic(model="claude-sonnet-4-6")            agent = create_react_agent(model, tools)
            result = await agent.ainvoke({                "messages": "Validate this email: [email protected] and look up postcode SW1A 1AA"            })            print(result["messages"][-1].content)

HTTP endpoint:

python
from mcp import ClientSessionfrom mcp.client.streamable_http import streamablehttp_client
async def main():    async with streamablehttp_client(        "https://mcp.apitier.com/mcp?x-api-key=mcp_your-key-here"    ) as (read, write, _):        async with ClientSession(read, write) as session:            await session.initialize()            tools = await load_mcp_tools(session)            # use tools with your agent...

Vercel AI SDK (TypeScript)

stdio:

typescript
import { experimental_createMCPClient as createMCPClient } from "ai";import { Experimental_StdioMCPTransport as StdioMCPTransport } from "ai/mcp-stdio";import { anthropic } from "@ai-sdk/anthropic";import { generateText } from "ai";
const mcp = await createMCPClient({  transport: new StdioMCPTransport({    command: "npx",    args: ["-y", "@apitier/mcp-server"],    env: { APITIER_MCP_KEY: process.env.APITIER_MCP_KEY! },  }),});
const tools = await mcp.tools();
const { text } = await generateText({  model: anthropic("claude-sonnet-4-6"),  tools,  prompt: "Verify this UK company: Google UK Limited",});
await mcp.close();

HTTP endpoint:

typescript
import { experimental_createMCPClient as createMCPClient } from "ai";
const mcp = await createMCPClient({  transport: {    type: "sse",    url: `https://mcp.apitier.com/mcp?x-api-key=${process.env.APITIER_MCP_KEY}`,  },});
const tools = await mcp.tools();

Environment Variables

VariableDescription
APITIER_MCP_KEYRecommended. Single MCP Key from account page — resolves all subscribed service keys automatically
APITIER_POSTCODE_KEYUK Postcode subscription — enables verify_uk_address, lookup_uprn, lookup_uk_postcode
APITIER_LEAD_AGENT_KEYLead Agent subscription — enables verify_uk_company, get_company_psc
APITIER_EMAIL_KEYEmail Validation subscription — enables validate_email
APITIER_PHONE_KEYPhone Validation subscription — enables validate_phone
APITIER_VAT_KEYVAT Validation subscription — enables validate_vat
APITIER_PINCODE_KEYIndia Pincode subscription — enables lookup_india_pincode
APITIER_BARCODE_KEYBarcode/QR Code subscription — enables generate_barcode, generate_qrcode
APITIER_CONVERT_DATA_KEYData Conversion subscription — enables convert_data

validate_sort_code requires no API key — it is always available.

kyc_onboard_uk requires APITIER_POSTCODE_KEY + APITIER_LEAD_AGENT_KEY + APITIER_VAT_KEY (or a unified APITIER_MCP_KEY with all three subscriptions). The tool only appears when all three services are active.

Individual service keys take precedence over APITIER_MCP_KEY if both are set.


Development

bash
git clone https://github.com/apitier/apitier-mcp-server.gitcd apitier-mcp-servernpm installnpm run buildAPITIER_MCP_KEY=mcp_your-key node dist/index.js

Test with the MCP Inspector:

bash
npx @modelcontextprotocol/inspector npx @apitier/mcp-server

Set APITIER_MCP_KEY in the inspector's environment variables panel.


Example Agent Prompts

Once connected to Claude Desktop or any MCP-compatible agent:

UK KYC onboarding

  • "Run a KYC check on Vodafone Group Plc, VAT GB778476239, postcode EC1A 1BB"
  • "Onboard this supplier: company name Tesco PLC, VAT GB220437023"
  • "Verify this business before we sign the contract: company number 00445790"

UK address & property

  • "Verify this address and give me its UPRN: 10 Downing Street, SW1A 2AA"
  • "Look up UK postcode EC1A 1BB and fill in the address form"

UK business & compliance

  • "Verify this UK company on Companies House: Barclays Bank UK PLC"
  • "Who are the persons with significant control for company number 00026167?"
  • "Validate this UK sort code and account number: 60-16-13 / 31926819"
  • "Validate this UK VAT number: GB927065390"
  • "Validate this EU VAT number before I send the invoice: DE123456789"

Global identity

  • "Validate this list of emails and tell me which ones are invalid"
  • "Validate these phone numbers and tell me which country each is from"

Utilities

  • "Generate a QR code for apitier.com"
  • "Convert this CSV to JSON"

来源:README.md,提交 87163dd

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分