# Dubai Wealth Index in VS Code

Dubai Wealth Index

> Bring registered Dubai prices, rents and yields into the files you are editing in VS Code, each with the record it comes from.

- Canonical: https://dubaiwealthindex.com/agents/vscode
- MCP server: https://dubaiwealthindex.com/api/mcp
- Transport: Streamable HTTP, OAuth 2.1

## Set it up in VS Code

Run in your terminal:

```bash
code --add-mcp '{
  "name": "dubai-wealth-index",
  "type": "http",
  "url": "https://dubaiwealthindex.com/api/mcp"
}'
```

Then let VS Code authenticate the server and sign in.

Or in VS Code: run MCP: Add Server from the Command Palette, choose HTTP and paste the server URL.

Or paste this setup prompt into VS Code:

```text
Connect to the Dubai Wealth Index MCP server and confirm the tools are available.

Endpoint: https://dubaiwealthindex.com/api/mcp
Transport: Streamable HTTP
Auth: OAuth 2.1 with dynamic client registration: no API key to paste.
Docs: https://dubaiwealthindex.com/docs/mcp
Skill: https://dubaiwealthindex.com/skill.md

If you can add a remote MCP / custom connector yourself, do that with the
endpoint above. Otherwise walk me through the exact clicks in your UI,
then call tools/list (or the equivalent) so I can see the tool names.
```

Steps from VS Code's docs, checked Nov 2026. [VS Code docs: MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration).

## How VS Code connects

1. **Run one command**: It adds the server URL to VS Code under the name dubai-wealth-index.
2. **Sign in once**: VS Code opens Dubai Wealth Index in your browser. Sign in with a free account and approve: no key to copy.
3. **Ask in the agent panel**: Ask VS Code while you edit: it fills tables, seed data and copy with registered figures, each linked to its record.

## What to ask VS Code

- Update src/data/price-index.ts with the latest Dubai price index readings, keeping the rebased values and data date.
- Find the five Dubai buildings with the highest gross yield and write them to docs/top-yields.md as a table.
- Check which plan this connection is on, its daily call allowance and the scopes the token carries.

## For AI agents

```text
If you are an AI agent setting up Dubai Wealth Index for your user:

1. Add the MCP server https://dubaiwealthindex.com/api/mcp as dubai-wealth-index (streamable HTTP, OAuth 2.1), with the steps on this page.
2. When the browser opens, ask your user to sign in with a free Dubai Wealth Index account and approve.
3. Check the connection: call whoami.
4. Resolve a place name with search, then read it with get_building, get_area or get_villa_community.
5. Quote each figure with its bedroom type, unit, period, data date and sample, and link the record it came from. Rules: https://dubaiwealthindex.com/skill.md
```

## FAQ

**How do I add Dubai Wealth Index to VS Code?**

Run in your terminal: code --add-mcp '{"name":"dubai-wealth-index","type":"http","url":"https://dubaiwealthindex.com/api/mcp"}'. Then let VS Code authenticate the server and sign in. Or in VS Code: run MCP: Add Server from the Command Palette, choose HTTP and paste the server URL. The server URL is https://dubaiwealthindex.com/api/mcp.

**How does VS Code sign in?**

With OAuth 2.1: VS Code registers itself with the server, and the one human step is signing in and approving. Then let VS Code authenticate the server and sign in. No API key to copy.

**Is it free?**

Yes, to start. A free Dubai Wealth Index account gets 50 tool calls a day. Pro has no daily cap and lifts the limits on asking-price checks, the screener and side-by-side compare: https://dubaiwealthindex.com/pricing.

**Where do the figures come from?**

Every price, rent and yield is a median of registered records: Dubai Land Department sale transactions and Ejari rental contracts. Short-term returns are modelled from nightly asking rates under a stated occupancy assumption. Each answer carries its sample, unit, period and data date.

**Can VS Code change anything?**

No. Every tool reads, except request_info, which sends an enquiry you confirmed to a licensed agent. VS Code can read the buildings you have saved, but not save or remove them.

## Related

- [All AI agents](https://dubaiwealthindex.com/agents)
- [MCP server reference](https://dubaiwealthindex.com/docs/mcp)
- [How every figure is computed](https://dubaiwealthindex.com/methodology)
