Agent Integration
Connect RefPassport to AI agents and automation platforms. Verify references, check DNS, and guide users through onboarding — all from within an AI conversation.
Claude MCP Server
RefPassport provides an MCP (Model Context Protocol) server that exposes verification and onboarding tools directly to Claude Desktop and Claude Code.
Configuration
Add this to your Claude Desktop or Claude Code MCP settings:
{
"mcpServers": {
"refpassport": {
"command": "npx",
"args": ["@refpassport/mcp-server"],
"env": {
"REFPASSPORT_API_URL": "https://www.refpassport.com",
"REFPASSPORT_API_KEY": "rp_your_key_here",
"REFPASSPORT_SIGNING_PASSWORD": "your_password"
}
}
}
}Available Tools
| Tool | Auth | Description |
|---|---|---|
| verify_reference | None | Verify a reference by UUID |
| lookup_tenant | None | Check if a domain is a registered tenant |
| check_domain_dns | None | Check DNS TXT record status |
| detect_dns_provider | None | Identify registrar from nameservers |
| get_registrar_guide | None | Get DNS setup steps for a registrar |
| get_onboarding_steps | None | Get the complete onboarding flow |
| create_reference | API Key | Create a signed reference |
Example Conversation
get_onboarding_steps] "First, visit refpassport.com/signup and enter acme.com with your work email."detect_dns_provider("acme.com")] "You're using Cloudflare."get_registrar_guide("cloudflare")] "Add this TXT record in Cloudflare DNS..."check_domain_dns("acme.com")] "Your DNS is verified! You're ready to issue references."OpenAI GPT Actions
Connect RefPassport to a custom GPT using the OpenAPI spec and AI plugin manifest.
- Go to GPT Builder > Configure > Actions
- Click Import from URL
- Enter:
https://www.refpassport.com/openapi.json - The spec defines all public endpoints. For reference creation, add your API key in the authentication settings.
The AI plugin manifest at /.well-known/ai-plugin.json provides automatic discovery for compatible platforms.
LangChain / LlamaIndex
Use RefPassport as a tool in your Python agent framework.
from langchain.tools import tool
import requests
@tool
def verify_reference(reference_id: str) -> dict:
"""Verify a RefPassport employment reference by UUID.
Returns gold (fully verified), silver (signature valid,
DNS not found), or invalid (tampered)."""
res = requests.get(
f"https://www.refpassport.com/api/verify/{reference_id}"
)
return res.json()
@tool
def check_dns(domain: str) -> dict:
"""Check if a domain has a RefPassport DNS TXT record."""
res = requests.get(
"https://www.refpassport.com/api/dns/check",
params={"domain": domain},
)
return res.json()
@tool
def create_reference(
candidate_name: str,
role: str,
dates: str,
text: str,
signing_password: str,
) -> dict:
"""Create a signed employment reference via the RefPassport API."""
res = requests.post(
"https://www.refpassport.com/api/partners/references",
headers={
"Content-Type": "application/json",
"x-api-key": "rp_your_api_key_here",
},
json={
"candidateName": candidate_name,
"role": role,
"dates": dates,
"text": text,
"signingPassword": signing_password,
},
)
return res.json()Agent-Guided Onboarding
How an AI agent walks a user through the complete RefPassport setup flow:
- Account creation: Direct the user to refpassport.com/signup. They enter their domain + work email and verify via email link. This must happen in a browser.
- Complete signup: User clicks the email verification link and sets their signing password. The system generates Ed25519 keys and shows the DNS record to add.
- Detect registrar: Use
detect_dns_provider(or resolve nameservers manually) to identify whether they use Cloudflare, Namecheap, GoDaddy, etc. - DNS setup instructions: Use
get_registrar_guideto show registrar-specific steps with common gotchas. - Verify propagation: Poll
check_domain_dnsuntilfound: trueandvalid: true. DNS propagation times vary: Cloudflare ~5 min, Namecheap ~30 min, GoDaddy 1-4 hours. - Generate API key: Direct the user to Settings > API Keys to create a key for programmatic access, or help them create their first reference from the dashboard.
Example Prompts
These prompts work well with any AI agent that has access to RefPassport tools or API:
- "Help me set up RefPassport for my company domain acme.com"
- "Verify this reference: 550e8400-e29b-41d4-a716-446655440000"
- "Check if example.com has RefPassport DNS set up"
- "Create a reference for Jane Smith who worked as a Software Engineer from Jan 2022 to Dec 2024"
- "What DNS provider does example.com use? Show me the setup instructions."