1. Install OpenAI Agents SDK (Python & TypeScript)
Install the official OpenAI Agents SDK and HTTP client packages, then export OPENAI_API_KEY and EDGEDATA_API_KEY in your environment. EdgeData accepts both Authorization: Bearer YOUR_EDGEDATA_API_KEY and X-API-Key: YOUR_EDGEDATA_API_KEY across https://mcp.upp3.com/mcp and https://api.upp3.com.
pip install openai-agents openai httpx
npm install @openai/agents openai
| Integration Pattern | Gateway / Endpoint | Glue Code | Best Production Use Case |
|---|---|---|---|
Tab 1: MCPServerStreamableHttp |
https://mcp.upp3.com/mcp (56 tools) |
Zero tool schemas to write | Multi-agent handoffs, local tracing, dynamic cross-platform research |
| Tab 2: Responses API Remote MCP | https://mcp.upp3.com/mcp (56 tools) |
Single API call (Python / TS) | Stateless serverless functions where OpenAI executes MCP tools remotely |
Tab 3: Custom @function_tool |
https://api.upp3.com/v1/* (67 REST) |
Typed Python + httpx |
Strict parameter allowlists, custom Redis caching, 504/429 retry telemetry |
2. Three Production Integration Modes (Copy & Run)
Every Python snippet below is syntax-verified and uses real EdgeData MCP tools and verified /v1/* REST endpoints (including our 6 newest Redfin, Rightmove, and TradingView endpoints at 2 credits/call, 0-PII).
import asyncio
import os
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp
EDGEDATA_API_KEY = os.getenv("EDGEDATA_API_KEY", "YOUR_EDGEDATA_API_KEY")
async def main() -> None:
async with MCPServerStreamableHttp(
name="EdgeData Hosted MCP (56 Tools)",
params={
"url": "https://mcp.upp3.com/mcp",
"headers": {
"Authorization": f"Bearer {EDGEDATA_API_KEY}",
},
"timeout": 30,
},
cache_tools_list=True,
) as edgedata_mcp:
analyst = Agent(
name="Cross-Platform Market Analyst",
model="gpt-4.1-mini",
instructions=(
"You are a disciplined real estate, finance, and commerce analyst. "
"Always pass mode='summary' on every EdgeData MCP tool call (~80% token savings), "
"respect GDPR 0-PII boundaries, and synthesize concise Markdown briefings."
),
mcp_servers=[edgedata_mcp],
)
result = await Runner.run(
analyst,
(
"Cross-check 3 live verticals in one briefing using mode='summary': "
"1) Austin, TX 3+ bed homes under $850k via redfin_search_properties and "
"UK asking-price benchmark via rightmove_get_house_price_index; "
"2) Live quotes for NASDAQ:AAPL,NASDAQ:NVDA,BINANCE:BTCUSDT via tradingview_get_quotes; "
"3) Product details for Amazon ASIN B0BSHF7WHW via amazon_get_product_detail."
),
)
print(result.final_output)
if __name__ == "__main__":
asyncio.run(main())
MCPServerStreamableHttp connects directly to https://mcp.upp3.com/mcp with cache_tools_list=True—exposing all 56 native EdgeData MCP tools across 16 platforms without writing a single JSON schema, local proxy, or Docker sidecar.
import os
from openai import OpenAI
client = OpenAI()
EDGEDATA_API_KEY = os.getenv("EDGEDATA_API_KEY", "YOUR_EDGEDATA_API_KEY")
response = client.responses.create(
model="gpt-4.1-mini",
tools=[
{
"type": "mcp",
"server_label": "edgedata",
"server_url": "https://mcp.upp3.com/mcp",
"headers": {
"Authorization": f"Bearer {EDGEDATA_API_KEY}",
},
"allowed_tools": [
"redfin_get_market_trends",
"rightmove_get_house_price_index",
"tradingview_get_quotes",
"tradingview_get_earnings_calendar",
],
"require_approval": "never",
}
],
input=(
"Using EdgeData tools with mode='summary', summarize Seattle, WA housing trends, "
"the latest Rightmove UK House Price Index, live quotes for NASDAQ:AAPL,NASDAQ:NVDA,BINANCE:BTCUSDT, "
"and upcoming US earnings releases (markets='america', page_size=20)."
),
)
print(response.output_text)
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const edgeDataKey = process.env.EDGEDATA_API_KEY ?? "YOUR_EDGEDATA_API_KEY";
async function runRemoteMcp() {
const response = await client.responses.create({
model: "gpt-4.1-mini",
tools: [
{
type: "mcp",
server_label: "edgedata",
server_url: "https://mcp.upp3.com/mcp",
headers: {
Authorization: `Bearer ${edgeDataKey}`,
},
allowed_tools: [
"redfin_search_properties",
"rightmove_search_properties",
"tradingview_get_quotes",
"tradingview_get_earnings_calendar",
],
require_approval: "never",
},
],
input:
"Using mode='summary', compare 3-bed listings under $850k in Austin, TX against 2-bed BUY listings under GBP 750k in London, and append live quotes for NASDAQ:AAPL,NASDAQ:NVDA,BINANCE:BTCUSDT.",
});
console.log(response.output_text);
}
runRemoteMcp();
import asyncio
import os
from typing import Any
import httpx
from agents import Agent, Runner, function_tool
API_BASE = "https://api.upp3.com"
EDGEDATA_API_KEY = os.getenv("EDGEDATA_API_KEY", "YOUR_EDGEDATA_API_KEY")
async def _edgedata_get(path: str, params: dict[str, Any]) -> dict[str, Any]:
"""Call EdgeData REST with exponential backoff on HTTP 504/429 (0 Credits Charged)."""
clean_params = {k: v for k, v in params.items() if v is not None}
headers = {"X-API-Key": EDGEDATA_API_KEY}
async with httpx.AsyncClient(base_url=API_BASE, timeout=30.0) as client:
for attempt in range(3):
resp = await client.get(path, params=clean_params, headers=headers)
if resp.status_code in (429, 504) and attempt < 2:
retry_after = float(resp.headers.get("Retry-After", 1.5 * (2 ** attempt)))
await asyncio.sleep(min(retry_after, 8.0))
continue
resp.raise_for_status()
return resp.json()
raise RuntimeError(f"EdgeData request failed after retries: {path}")
@function_tool
async def redfin_search_properties(
query: str,
max_price: int = 850000,
min_beds: int = 3,
page_size: int = 10,
) -> dict[str, Any]:
"""Search US residential listings on Redfin (2 credits/call, 0-PII, mode=summary)."""
return await _edgedata_get(
"/v1/real-estate/redfin/properties/search",
{
"query": query,
"max_price": max_price,
"min_beds": min_beds,
"page_size": page_size,
"mode": "summary",
},
)
@function_tool
async def redfin_market_trends(query: str) -> dict[str, Any]:
"""Fetch US city/ZIP median prices and DOM trends on Redfin (2 credits/call, 0-PII)."""
return await _edgedata_get(
"/v1/real-estate/redfin/market/trends",
{"query": query, "mode": "summary"},
)
@function_tool
async def rightmove_house_price_index() -> dict[str, Any]:
"""Fetch latest UK Rightmove House Price Index national & regional benchmarks (2 credits/call)."""
return await _edgedata_get(
"/v1/real-estate/rightmove/house-price-index",
{"mode": "summary"},
)
@function_tool
async def rightmove_search_properties(
query: str,
channel: str = "BUY",
max_price: int = 750000,
min_bedrooms: int = 2,
) -> dict[str, Any]:
"""Search UK property listings on Rightmove (2 credits/call, 0-PII, mode=summary)."""
return await _edgedata_get(
"/v1/real-estate/rightmove/properties/search",
{
"query": query,
"channel": channel,
"max_price": max_price,
"min_bedrooms": min_bedrooms,
"mode": "summary",
},
)
@function_tool
async def tradingview_quotes(
symbols: str = "NASDAQ:AAPL,NASDAQ:NVDA,BINANCE:BTCUSDT",
) -> dict[str, Any]:
"""Batch-fetch real-time quotes across equities, FX, indices & crypto (2 credits/call)."""
return await _edgedata_get(
"/v1/finance/tradingview/quotes",
{"symbols": symbols, "mode": "summary"},
)
@function_tool
async def tradingview_earnings_calendar(
markets: str = "america",
page_size: int = 20,
) -> dict[str, Any]:
"""Fetch upcoming corporate earnings dates and EPS/revenue forecasts (2 credits/call)."""
return await _edgedata_get(
"/v1/finance/tradingview/calendar/earnings",
{"markets": markets, "page_size": page_size, "mode": "summary"},
)
async def main() -> None:
research_agent = Agent(
name="Real Estate & Markets Specialist",
model="gpt-4.1-mini",
instructions=(
"Use the provided EdgeData tools to deliver a crisp US/UK housing & equities telemetry report. "
"Include median price deltas, sample listings, and upcoming US earnings catalysts. "
"Informational telemetry only, not investment advice."
),
tools=[
redfin_search_properties,
redfin_market_trends,
rightmove_house_price_index,
rightmove_search_properties,
tradingview_quotes,
tradingview_earnings_calendar,
],
)
result = await Runner.run(
research_agent,
(
"Compare Austin, TX 3+ bed homes under $850k and Seattle, WA market trends against "
"London 2+ bed BUY listings under GBP 750k and the UK House Price Index, then attach "
"NASDAQ:AAPL,NASDAQ:NVDA,BINANCE:BTCUSDT quotes plus the next 20 US earnings events."
),
)
print(result.final_output)
if __name__ == "__main__":
asyncio.run(main())
3. Three Copy-Paste Multi-Agent Commercial Orchestrations
Drop any multi-agent task prompt below into your OpenAI Agents SDK runner (using Tab 1’s MCPServerStreamableHttp) to orchestrate specialized sub-agents across real estate, global finance, B2B signals, and cross-border commerce while keeping token consumption ~80% lower via mode="summary".
Transatlantic US/UK Real Estate Investment Research Agent
Role: Lead PropTech Research Coordinator (handoffs to US_Housing_Agent & UK_Housing_Agent; enforce mode="summary" and strict 0-PII on every tool call). Task: 1. US_Housing_Agent: Call redfin_get_market_trends for "Austin, TX" and "Seattle, WA", then run redfin_search_properties (max_price=850000, min_beds=3, page_size=10) to calculate median price/sqft and average days on market. 2. UK_Housing_Agent: Call rightmove_get_house_price_index for the latest UK national/regional MoM & YoY asking-price changes, then call rightmove_search_properties (query="London", channel="BUY", max_price=750000, min_bedrooms=2) to sample active comps. 3. Coordinator: Merge both reports into a single structured Markdown investment memo comparing supply pressure, asking-price momentum, and currency-adjusted entry yield (informational telemetry only, not financial advice).
Earnings Catalyst & Alternative-Sentiment Cross-Research Agent
Role: Quantitative Research Synthesizer (handoffs to Markets_Agent & AltData_Sentiment_Agent; keep mode="summary" and GDPR 0-PII). Task: 1. Markets_Agent: Call tradingview_get_earnings_calendar (markets="america", page_size=20) to list the top upcoming US earnings releases, and call tradingview_get_quotes for "NASDAQ:AAPL,NASDAQ:NVDA,NASDAQ:MSFT,NYSE:CRM,BINANCE:BTCUSDT" for pre-earnings price & volume baselines. 2. AltData_Sentiment_Agent: For selected SaaS/commerce issuers, run trustpilot_lookup_company + trustpilot_get_reviews (1-2 star filter, 0-PII) to spot recent customer churn complaints, and call linkedin_search_jobs (strict 0-PII) to gauge recent engineering/sales hiring velocity. 3. Synthesizer: Produce a risk-ranked pre-earnings briefing table flagging divergences between market pricing, customer sentiment, and hiring momentum (telemetry only, not investment advice).
Cross-Border Competitor Pricing, Stockout & Ad-Creative Crew
Role: Cross-Border Commerce Operations Crew (handoffs to Marketplace_Agent, DTC_Inventory_Agent, and Ad_Intel_Agent; mode="summary" mandatory). Task: 1. Marketplace_Agent: Call amazon_get_product_detail and amazon_get_reviews (star_rating="critical", GDPR 0-PII) for ASIN "B0BSHF7WHW", and check Walmart Buy Box & WFS competing offers via walmart_get_offers. 2. DTC_Inventory_Agent: Probe public DTC storefront pricing across US/GB/DE via shopify_get_product_market and SKU variant availability via shopify_get_product_inventory. 3. Ad_Intel_Agent: Call google_ads_list_creatives (domain="gymshark.com", region="US", limit=20) to surface active video/image creative angles. 4. Crew Lead: Output a JSON action plan highlighting under-priced channels, low-stock hero SKUs receiving paid ad spend, and top 3 verified buyer defects to address in next-week creatives.
4. Claim Your Free EdgeData API Key (100 Credits/mo · No Card)
Generate a live EdgeData API key below to test all 3 OpenAI integration modes immediately. Once issued, the code blocks in Section 2 automatically populate with your active session key.
5. Transparent Upgrade Ladder ($0 / $47 / $49 / $149)
One key powers OpenAI Agents SDK (56 Hosted MCP tools), Responses API remote MCP, and all 67 REST endpoints across 16 global platforms.
Autonomous agent loops retry transient failures automatically—so EdgeData guarantees 0 Credits Charged on any upstream HTTP 504 timeout or HTTP 429 rate-limit response, alongside strict GDPR 0-PII scrubbing across reviews, LinkedIn Jobs, Redfin, Rightmove, and TradingView.
6. OpenAI Agents SDK & Responses API FAQ
Which integration mode should I pick: MCPServerStreamableHttp, Responses API remote MCP, or @function_tool?
Use OpenAI Agents SDK MCPServerStreamableHttp (Tab 1) for multi-agent handoffs, local tracing, and zero-glue access to all 56 EdgeData tools. Use OpenAI Responses API native remote MCP (Tab 2) for single-request server-side tool execution without hosting an MCP client loop. Use custom @function_tool REST wrappers (Tab 3) when you need strict schema subsets, local Redis caching, or custom retry telemetry.
How does EdgeData prevent context window bloat inside multi-agent OpenAI runs?
All 56 EdgeData Hosted MCP tools default to mode="summary", and every REST endpoint supports ?mode=summary, trimming raw rendering metadata and cutting tool-result tokens by an average of ~80%. That keeps multi-agent handoffs fast and affordable.
Does https://mcp.upp3.com/mcp require OAuth setup for OpenAI Responses API or Agents SDK?
No. EdgeData Hosted MCP supports direct header authentication via Authorization: Bearer YOUR_EDGEDATA_API_KEY or X-API-Key: YOUR_EDGEDATA_API_KEY over Streamable HTTP, plus no-auth read-only tools/list discovery and RFC 9728 metadata.
Are my OpenAI Agents charged EdgeData credits if an upstream returns HTTP 504 or 429?
Never. EdgeData enforces a strict 0 Credits Charged rule on any upstream HTTP 504 timeout or HTTP 429 rate-limit response across both Hosted MCP and REST endpoints, so exponential backoff retries in your agents never double-bill.
What pricing tiers apply when running OpenAI Agents against Redfin, Rightmove, TradingView, and e-commerce tools?
One EdgeData API key covers all 56 MCP tools and 67 REST endpoints across 16 platforms: Free ($0/mo, 100 credits/mo), Credit Pack ($47 one-time for 25,000 non-expiring credits), Pro ($49/mo, 15,000 credits/mo), and Scale ($149/mo, 60,000 credits/mo). Standard commerce calls cost 1 credit, and the 6 Redfin/Rightmove/TradingView endpoints cost 2 credits/call with strict GDPR 0-PII.
7. Explore Other SDK Guides & 8 Turnkey MCP Integrations
Your EdgeData API key works identically across every language quickstart in /sdks and every interactive AI client in /integrations.
Developer SDK Quickstarts (/sdks)
All Developer SDKs & Quickstarts
Compare Python, TypeScript/Node.js, cURL/REST, and OpenAI Agents SDK side by side.
Open /sdks Hub → REST & OpenAPI 3.1cURL & REST API Reference
Copy-paste cURL commands for all 67 endpoints, payload benchmarks, and Postman/Insomnia/Bruno import.
cURL & REST Guide → Python 3.9+Python SDK & Async httpx Guide
Typed sync/async clients, NDJSON streaming, automatic 504/429 retry, and LangChain/CrewAI tooling.
Python SDK Guide → Node 18+ / EdgeTypeScript & Node.js SDK Guide
Zero-dependency Web fetch SDK for Node.js, Bun, Deno, Next.js Edge, and Vercel AI SDK.
Interactive Swagger UI (/docs)
Inspect schemas and live-test any of the 67 /v1/* REST endpoints directly in your browser.
Hosted MCP Setup Hub (/integrations)
Connect https://mcp.upp3.com/mcp to 8 AI clients & frameworks (Claude Code, Cursor, Windsurf, Cline, Dify, n8n, OpenAI Agents SDK & LangChain).
Turnkey AI Client & Framework MCP Guides (/integrations)
OpenAI Agents SDK MCP Guide
Dedicated deep-dive for MCPServerStreamableHttp & Responses API (Python/TS) with e-commerce, real estate & finance blueprints.
LangChain & LangGraph MCP Guide
Wire langchain-mcp-adapters & StateGraph with HTTP 504/429 0-credit retries and mode="summary" token budgets.
Claude Code MCP Setup
One CLI command (claude mcp add --transport http) or team .mcp.json.
Cursor MCP Setup
Configure project .cursor/mcp.json or global Streamable HTTP with Bearer auth.
Windsurf MCP Setup
Wire Windsurf Cascade to https://mcp.upp3.com/mcp via mcp_config.json.
Cline (VS Code) MCP Setup
Add Streamable HTTP in cline_mcp_settings.json for autonomous VS Code loops.
Dify Studio MCP Setup
Register EdgeData inside Dify Studio Tools → MCP for Agents and Chatflows.
Dify Guide → Workflow Automationn8n AI Agent MCP Setup
Import a pre-wired n8n Workflow JSON using native MCP Client Tool + n8n-nodes-edgedata.