Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: RealYield MCP API
version: 1.0.0
summary: UK buy-to-let yields, the Net Yield Index and RealYield's calculators, for agents and developers.
description: Free, read-only and keyless, apart from Deal Check on the MCP server. Rents and prices are official ONS and HM Land Registry data, used under the Open Government Licence v3.0. Yields are before tax. Figures are educational, not financial advice.
termsOfService: https://www.realyield.co.uk/terms
contact:
name: RealYield
url: https://www.realyield.co.uk/contact
servers:
- url: https://www.realyield.co.uk
tags:
- name: MCP
description: The remote MCP server at https://www.realyield.co.uk/mcp.
paths:
/mcp:
post:
operationId: mcp
summary: MCP server (Streamable HTTP)
description: 'A remote Model Context Protocol server with RealYield''s read-only calculators, search and area yields as tools. Send JSON-RPC 2.0 messages with `Accept: application/json, text/event-stream`; call `tools/list` for the tools and their input schemas. Every tool is public except `check_deal` (Deal Check), which needs a bearer token from a free RealYield account. A call to it without one gets HTTP 401 with a `WWW-Authenticate` challenge naming the protected resource metadata (https://www.realyield.co.uk/.well-known/oauth-protected-resource/mcp). Sign-in for agents: https://www.realyield.co.uk/auth.md. Set-up guide for people: https://www.realyield.co.uk/ai-assistants. Limited to 300 requests a minute per IP address.'
tags:
- MCP
security:
- {}
- mcpOAuth:
- profile
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- jsonrpc
- method
properties:
jsonrpc:
const: '2.0'
id:
type:
- string
- integer
method:
type: string
examples:
- initialize
- tools/list
- tools/call
params:
type: object
responses:
'200':
description: JSON-RPC response, as JSON or as a server-sent event stream.
content:
application/json:
schema:
type: object
text/event-stream:
schema:
type: string
'401':
description: A protected tool was called without a valid bearer token. Follow `WWW-Authenticate` to sign in.
'429':
description: Too many requests from this address. Retry after the `Retry-After` seconds.
components:
securitySchemes:
mcpOAuth:
type: oauth2
description: 'OAuth 2.1 with PKCE (S256) through RealYield''s Clerk sign-in, registering by Client ID Metadata Document. Find the authorization server from https://www.realyield.co.uk/.well-known/oauth-protected-resource/mcp. Details: https://www.realyield.co.uk/auth.md. Clerk publishes the full metadata at https://clerk.realyield.co.uk/.well-known/oauth-authorization-server.'
flows:
authorizationCode:
authorizationUrl: https://clerk.realyield.co.uk/oauth/authorize
tokenUrl: https://clerk.realyield.co.uk/oauth/token
refreshUrl: https://clerk.realyield.co.uk/oauth/token
scopes:
profile: Your RealYield account identity, used for rate limiting only.
externalDocs:
description: Developer guide
url: https://www.realyield.co.uk/developers