MagicDoor MCP server

MagicDoor MCP server

Enables an AI assistant to read your MagicDoor portfolio — properties, units, leases, tenants, owners, and lease renewals — using a revocable API key.

Category
访问服务器

README

MagicDoor MCP server

Lets an AI assistant read your MagicDoor portfolio — properties, units, leases, tenants, owners and lease renewals — using an API key you create and can revoke at any time.

It runs on your own machine. Nothing is hosted, and your key never leaves your computer except to MagicDoor itself.

Setup

1. Create an API key in MagicDoor under Settings → API keys. Choose the permissions the assistant should have — properties:read, units:read, leases:read, tenants:read and owners:read are enough for everything here. The key is shown once; copy it.

2. Add the server to your assistant's MCP configuration:

{
  "mcpServers": {
    "magicdoor": {
      "command": "npx",
      "args": ["-y", "@magicdoor/mcp"],
      "env": { "MAGICDOOR_API_KEY": "magic_0_EXAMPLE-NOT-A-REAL-KEY" }
    }
  }
}

For Claude Code, claude mcp add magicdoor -e MAGICDOOR_API_KEY=magic_… -- npx -y @magicdoor/mcp does the same thing.

3. Restart the assistant. Ask it something like "how many units do we have in the Oak Street property?"

Tools

Portfolio

Tool Answers questions like
list_properties / list_units What's in the portfolio? How many units does this property have?
list_tenants / list_owners Who lives where? Who owns what? How do I reach them?

Leases — several tools take an id for one record, or filters for a list.

Tool Answers questions like
get_leases Who's renting what? Which leases carry a balance? One lease in full.
get_lease_ledger What do they owe, what have they paid — charges or deposits.
get_lease_transaction One ledger entry: charge, payment, credit, late fee, transfer or deposit.
list_lease_recurring_items What's billed or credited each period, rather than what has posted.
list_lease_related Autopay, renewal offers, move-outs, subsidies, files or custom fields for a lease.
list_expiring_leases / list_move_outs / list_lease_renewals What's ending, who's leaving, what renewed.
list_lease_documents Has the lease been signed?

Conversations

Tool Answers questions like
list_chats / get_chat / get_chat_messages What are people asking about, and what was said?
list_unread_messages / search_chat_messages What needs a response? Did anyone mention the boiler?

Accounting

Tool Answers questions like
get_bank_accounts / get_chart_of_accounts What accounts do we hold? How are the books structured?
get_transaction / get_bank_ledger_transfers / get_manual_journal_entries What was this? What moved? What was adjusted by hand?
list_deposit_slips Which payments were banked together?
get_financial_report Balance sheet, income statement, cash flow or general ledger.
get_rent_payments_report / get_owner_statement What rent came in? What does this owner get?
get_accounting_summary On-time rent, online payments, daily money movement, returns and disputes.

Maintenance

Tool Answers questions like
get_maintenance_requests What's broken? What came in this week? One request in full.
get_work_orders / get_work_order_schedule What work is open? What's happening on Tuesday?
get_maintenance_history What happened with this, and why is it taking so long?
get_recurring_work_orders / get_recurring_work_order_stats What repeats, how often, at what cost?
get_vendors / get_vendor_detail Who do we use for plumbing? How much do we spend with them?
list_maintenance_categories / get_run_books How is work classified? What's our process?
get_maintenance_request_stats How much is outstanding?

Every tool is read-only. There is no way to create, change or delete anything in MagicDoor through this server, by design.

Configuration

Variable Required Default Purpose
MAGICDOOR_API_KEY yes — The key you created in MagicDoor.
MAGICDOOR_ENV no production production, staging, demo or development.
MAGICDOOR_AUTH_URL no from MAGICDOOR_ENV Override the auth host, for local development.
MAGICDOOR_API_URL no from MAGICDOOR_ENV Override the portal API host, for local development.
MAGICDOOR_ACCOUNTING_URL no from MAGICDOOR_ENV Override the accounting host, for local development.
MAGICDOOR_MAINTENANCE_URL no from MAGICDOOR_ENV Override the maintenance host, for local development.

How access works

The API key is long-lived; the tokens it produces are not. On the first tool call the server exchanges your key for a 15-minute access token, keeps it in memory, and renews it a minute before it expires. There is no refresh token — the key itself is the durable credential.

Two things follow, and both are deliberate:

  • Revoking the key stops this server immediately. There is no session to expire.
  • Narrowing your own MagicDoor permissions narrows the key too. Permissions are re-checked every time a token is issued, so a key can never do more than you can right now.

Releasing

npm version patch                  # or minor, or major
NPM_TOKEN=npm_xxx ./publish.sh

npm will not publish without a second factor. Create a granular access token at npmjs.com → Access Tokens → Generate New Token → Granular Access Token, with Bypass 2FA ticked and read/write limited to the @magicdoor scope, and pass it as NPM_TOKEN. It cannot touch anything outside that scope even if it leaks. If you have 2FA set up instead, pass the code: ./publish.sh 123456.

publish.sh refuses to run on a dirty tree or a version that is already on npm, checks types, runs the tests, then publishes.

Development

npm install
npm run build
MAGICDOOR_API_KEY=magic_… MAGICDOOR_ENV=development node dist/index.js

The server speaks MCP over stdio, so it expects a client on the other end rather than a terminal. npx @modelcontextprotocol/inspector node dist/index.js gives you one to poke at it with.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选