Complete documentation for integrating with the Opportunity Zone MCP server
The Opportunity Zone MCP server provides tools for checking whether coordinates fall within designated Opportunity Zones in the United States. It supports both direct API calls and MCP-compatible AI assistants like Claude.
Register for an API key to access the MCP server endpoints.
curl -X POST https://oz-mcp.vercel.app/api/opportunity-zones/check \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"latitude": 38.8977,
"longitude": -77.0365
}'{
"mcpServers": {
"opportunity-zones": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-fetch"],
"env": {
"FETCH_BASE_URL": "https://oz-mcp.vercel.app/api/mcp",
"FETCH_API_KEY": "YOUR_ACCESS_TOKEN"
}
}
}
}"Check if the coordinates 38.8977, -77.0365 (Washington DC) are in an Opportunity Zone"
const functions = [
{
name: "check_opportunity_zone",
description: "Check if coordinates are in an Opportunity Zone",
parameters: {
type: "object",
properties: {
latitude: {
type: "number",
description: "Latitude coordinate"
},
longitude: {
type: "number",
description: "Longitude coordinate"
}
},
required: ["latitude", "longitude"]
}
}
];async function handleFunctionCall(name, args) {
if (name === "check_opportunity_zone") {
const response = await fetch(
"https://oz-mcp.vercel.app/api/opportunity-zones/check",
{
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
latitude: args.latitude,
longitude: args.longitude
})
}
);
return await response.json();
}
}/api/opportunity-zones/check{
"latitude": number,
"longitude": number
}{
"isOpportunityZone": boolean,
"tract": string | null,
"state": string | null
}/api/opportunity-zones/geocode{
"address": string
}{
"latitude": number,
"longitude": number,
"formattedAddress": string,
"isOpportunityZone": boolean,
"tract": string | null,
"state": string | null
}/api/mcpSupports full MCP (Model Context Protocol) for AI assistants like Claude.
check_opportunity_zone - Check coordinatesgeocode_address - Convert address to coordinates