Skip to main content
Glama
yardi-mcp
by padak
README.md
# yardi-mcp

**Your AI agent, fluent in Yardi Voyager. No API required.**

Yardi Voyager runs a serious chunk of the world's real estate. It also has hundreds of screens, a
menu that scrolls forever, and no API you can just plug an agent into. So we taught the agent to use
the web app itself.

`yardi-mcp` turns Voyager's screens into clean, typed [MCP](https://modelcontextprotocol.io) tools.
Ask *"Which leases does tenant X have, and how much space?"* and the agent finds the right screen,
fills the filters, reads the results and opens the record. Same answer you'd get after ten minutes of
clicking. In seconds.

## Why it's different

- **The whole system, mapped.** We crawl the live menu and turn every review screen into a named tool
  with real parameters (`review_vendor(last_name=..., country=...)`), not a generic "click here" bot.
  Each tool knows where it lives in the menu, so answers come with their source.
- **Least privilege by default.** You don't hand the agent Yardi. You hand it a *use case*.
  Start the server with `--use-case receivables_check` and the agent sees exactly four tools.
  Everything else doesn't exist for it.
- **Read-only, enforced.** Every tool is classified as read, write or delete. Only approved *read*
  tools can go into a use case; anything else and the server refuses to start. The category ships as
  MCP tool annotations, so your client can auto-approve reads and keep a human in the loop for the rest.
- **No URL guessing.** The agent can only open records that one of its own tools returned in this session.
- **Your login, your session.** Sign in once with your normal Microsoft SSO. No passwords in config,
  no service accounts, no stored secrets.
- **Ships with a skill.** A built-in skill (served over MCP) teaches the agent Yardi's codes and the
  best way to answer.

## How it works

```
Yardi menu ──crawl──▶ catalog of screen tools ──approve──▶ allowed list ──pick──▶ use case ──▶ agent
                       (read / write / delete)             (a human signs off)    (--use-case)
```

Under the hood, Playwright drives an installed Google Chrome with a persistent profile. Voyager's
review screens share one filter → result engine, so a single, well-tested flow covers all of them.

## Quickstart

Requires Python 3.12+, [uv](https://docs.astral.sh/uv/), Google Chrome and a Yardi Voyager login.

```bash
uv sync
cp config/yardi.example.toml config/yardi.toml   # set base_url and database
uv run yardi-login                               # sign in once, the session is kept
uv run python scripts/build_catalog.py           # map your instance's screens
uv run yardi-tools list --use-case demo --only   # see what the agent will get
```

Plug it into Claude Desktop, Claude Code or any MCP client:

```json
{
  "mcpServers": {
    "yardi": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/yardi-mcp", "yardi-mcp", "--use-case", "demo"]
    }
  }
}
```

## Make your own use case

Drop a file in `config/use_cases/`:

```toml
# config/use_cases/receivables_check.toml
description = "Receivables: check charges and receipts for a lease or property and read the related lease."
tools = ["review_charge", "review_receipt", "review_lease", "open_record"]
```

Tools must first be on the approved list in `config/tool_policy.toml`. That's the one place a
responsible person decides what agents may ever touch.

## Good to know

- Status: proof of concept. Tested against one Voyager instance.
- One server instance per machine (they share the browser profile).
- Your instance config, screen catalog and login profile stay local and are gitignored.

## License

MIT