Skip to main content
Glama
Dealport MCP Server

Dealport MCP Server

by Dealport-HQ
README.md
# Dealport

[![Dealport MCP connector](https://glama.ai/mcp/connectors/com.dealport/dealport/badges/score.svg)](https://glama.ai/mcp/connectors/com.dealport/dealport)
[![Dealport on mcptry](https://mcptry.com/badge/com.dealport/dealport)](https://mcptry.com/servers/com.dealport/dealport)

**The SMB knowledge layer for agents and humans.**

Dealport holds cited **Records** on **28M+ US private companies**, the commercial buildings they own, and the human principals behind them, backed by primary public filings (state corporate registries, UCC filings, Medicare & CMS cost reports, state health and trade licenses, SEC Form ADV, property & mortgage deeds, and cached company websites).

Connect your own AI or code via **CLI**, **MCP**, **TypeScript/JS SDK**, **Python SDK**, **Agent Skills**, or **REST API**. Every account starts with a **$5.00 free USD balance** and pays as you go in plain USD.

- **Platform & API keys (`Connect your AI -> API keys`):** [app.dealport.com/connect?tab=keys](https://app.dealport.com/connect?tab=keys)
- **AI bootstrap (`llms.txt`):** [app.dealport.com/llms.txt](https://app.dealport.com/llms.txt)
- **OpenAPI 3.1 Spec:** [app.dealport.com/openapi/v1.json](https://app.dealport.com/openapi/v1.json)
- **Remote Streamable HTTP MCP:** `https://app.dealport.com/api/mcp`
- **Enterprise (Dealport runs origination for you):** [dealport.com](https://dealport.com)

---

## Quickstart (`npx dealport`)

Requires **Node.js 20+** and **zero external dependencies**.

```bash
# 1. Authenticate once (saves to ~/.config/dealport/credentials.json with 0600 permissions)
npx dealport login --key dp_live_...

# 2. Size a market for free ($0.00) and inspect 5 sample companies
npx dealport preview --state OH --naics 238220 --min-employees 15 --independent

# 3. Pull matching company Records ($0.01/record, $0.00 repeat within 30 days)
npx dealport search --state OH --naics 238220 --independent --limit 10

# 4. Open a full cited Record + filing evidence
npx dealport record <company_id> --evidence

# 5. Save a 0-100 score & rationale into a Dealport Project ($0.00)
npx dealport annotate --company <company_id> --project "Ohio HVAC" --score 92 --verdict priority --rationale "30yr commercial contractor"

# 6. Resolve the verified human owner's direct phone & email ($0.09 hit / $0.00 miss)
npx dealport owner <company_id>
```

Pass `--json` on any command for structured JSON output suitable for agents and `jq`.

---

## Connect Your AI (MCP, Plugins & Agent Skills)

Paste a single line into any AI assistant:

```text
Set up Dealport: https://app.dealport.com/llms.txt
```

### Claude Code (Plugin Marketplace or Direct MCP)
Install the official plugin (remote OAuth MCP + workflow skill):
```text
/plugin marketplace add Dealport-HQ/dealport
/plugin install dealport@dealport
```
Then run `/mcp`, pick `dealport`, and authenticate, or register the MCP server directly:
```bash
claude mcp add --transport http dealport https://app.dealport.com/api/mcp
```

### Cursor
Install from this repository's Cursor plugin marketplace (`.cursor-plugin/marketplace.json` -> `plugins/dealport`, URL-only OAuth MCP + skill), or write `.cursor/mcp.json` locally:
```bash
npx dealport mcp cursor --write
```

### GitHub Copilot CLI
```bash
copilot plugin marketplace add Dealport-HQ/dealport
copilot plugin install dealport@dealport
```

### Codex & ChatGPT
Install via the Codex plugin marketplace (`.agents/plugins/marketplace.json`):
```bash
codex plugin marketplace add Dealport-HQ/dealport
codex plugin add dealport@dealport
```
Or print `~/.codex/config.toml` directly:
```bash
npx dealport mcp codex
```

### DeepSeek Harness (`dsh`)
```bash
dsh plugin --profile <name> add github:Dealport-HQ/dealport
```
*(Set `export DP_API_KEY=dp_live_...` before starting `dsh` to enable the `mcp__dealport__*` tools automatically.)*

### Claude Desktop, Web & ChatGPT Custom Connectors
- **Claude Desktop / Web (OAuth):** Open **Settings -> Connectors -> Add custom connector**, name it **Dealport**, and enter `https://app.dealport.com/api/mcp`.
- **ChatGPT / API-key connectors:** Use `https://app.dealport.com/api/mcp?key=dp_live_...` or pass `Authorization: Bearer dp_live_...`.

### Agent Skills (`skills.sh` & ClawHub)
Install the 5-step Dealport sourcing & origination workflow skill into Claude Code, Cursor, Codex, or Windsurf:
```bash
npx skills add Dealport-HQ/dealport -s dealport
```

---

## TypeScript / JavaScript SDK

Install from npm (zero runtime dependencies, native `fetch`, full `.d.ts` types):

```bash
npm install dealport
```

```ts
import { Dealport, DealportError } from "dealport";

// Reads DP_API_KEY or ~/.config/dealport/credentials.json automatically
const dp = new Dealport();

// 1. Size a buy-box universe for free ($0.00)
const preview = await dp.previewCompanies({
  state: "OH",
  naics: ["238220"],
  minEmployees: 15,
  independent: true,
});
console.log(`Matching companies: ${preview.matching_count}`);

// 2. Search companies & open a cited Record ($0.01/record)
const { data: companies } = await dp.searchCompanies({ state: "OH", naics: ["238220"], limit: 5 });
const { data: record } = await dp.getRecord(companies[0].id);

// 3. Persist ranked evaluations back into a Dealport Project ($0.00)
await dp.annotateCompanies({
  projectName: "Ohio Commercial HVAC",
  items: [
    {
      companyId: record.id,
      score: 91,
      verdict: "priority",
      rationale: "Filed state license, 25+ staff, independent owner-operator",
    },
  ],
});

// 4. Resolve verified human owner phone & email ($0.09 hit / $0.00 miss)
try {
  const owner = await dp.findOwner(record.id);
  console.log(owner.person?.name, owner.phone, owner.email);
} catch (err) {
  if (err instanceof DealportError && err.isInsufficientBalance) {
    console.error("Top up balance at https://app.dealport.com:", err.message);
  }
}
```

Runnable end-to-end scripts live in [`examples/`](./examples):
- [`examples/01-size-and-score-market.mjs`](./examples/01-size-and-score-market.mjs)
- [`examples/02-match-csv-and-find-owners.mjs`](./examples/02-match-csv-and-find-owners.mjs)
- [`examples/03-commercial-building-owners.mjs`](./examples/03-commercial-building-owners.mjs)

---

## Python SDK & Agent Tool Adapters (`python/`)

Zero-dependency official Python package (`Python >= 3.10`, stdlib `urllib.request`, MIT) in [`python/`](./python) for Python apps and agent frameworks (OpenAI Agents SDK, Anthropic SDK, LangGraph/LangChain, CrewAI, Agno, LlamaIndex, AutoGen, DSPy):

```bash
pip install "dealport @ git+https://github.com/Dealport-HQ/dealport.git#subdirectory=python"
```

```python
from dealport import Dealport
from dealport.tools import anthropic_tools, as_callables, openai_tools

dp = Dealport()  # reads DP_API_KEY or ~/.config/dealport/credentials.json
preview = dp.preview_companies(state="OH", naics=["238220"], min_employees=15, independent=True)
tools = as_callables(dp)  # or openai_tools() / anthropic_tools()
```

---

## Core Concepts

- **Record:** One company, one commercial building, or one person. Every fact carries a numbered source citation and is marked `filed`, `observed`, or `estimate`.
- **Project:** A living folder of Records in your Dealport workspace. Agents write 0-100 scores, verdicts, and rationales into Projects for free (`annotate`), and any Project can be monitored weekly (`watch`).
- **Playbook:** A qualification and ranking rubric you run from your own AI or on Dealport's cloud.
- **Avery:** Dealport's AI outreach specialist for double-opt-in owner introductions. She writes privately to business owners, always discloses she is an AI, respects your workspace `blocklist`, and introduces owners who opt in to speak with you.

---

## CLI Reference

| Command | Description | Rate |
| --- | --- | --- |
| `dealport login [--key dp_live_...]` | Verify key via `/api/v1/balance` and save to `~/.config/dealport/credentials.json` | `$0.00` |
| `dealport logout` | Remove saved local credentials | `$0.00` |
| `dealport balance` | Inspect available USD balance, spend caps, key scopes, and rates | `$0.00` |
| `dealport preview [filters]` | Size matching company count and preview 5 sample companies | `$0.00` |
| `dealport search [filters]` | Search 28M+ US private companies (`--state`, `--naics`, `--min-revenue`, `--independent`, ...) | `$0.01`/row |
| `dealport buildings --borough <B>` | Search commercial/multifamily buildings (`--min-units`, `--loan-due-by`, `--loan-holder`, `--signal`) | `$0.01`/row |
| `dealport record <id> [--evidence]` | Open a cited company (`UUID`) or building (`BBL`) Record and optional filing citations | `$0.01` |
| `dealport pages <id_or_domain...>` | Read clean company website Markdown (`--paths /,/about`) | `$0.00` cached / `$0.01` live |
| `dealport match <file.csv>` | Match up to 250 CSV rows by domain and fuzzy name (`--project`, `--watch`) | `$0.00` (`$0.05`/mo watch) |
| `dealport owner <company_id>` | Resolve verified human principal + direct phone & email (`--person`) | `$0.09` hit / `$0.00` miss |
| `dealport contact <company_id>` | Resolve direct contact phone & email (`--person`, `--role`) | `$0.09` hit / `$0.00` miss |
| `dealport research <id> [--poll]` | Start or read deep cited company research (`--poll` waits until complete) | `$0.50` (`$0.00` poll) |
| `dealport annotate --company <id>` | Save 0-100 `--score`, `--verdict`, `--rationale`, and `--field k=v` into a Project | `$0.00` |
| `dealport annotations` | Query saved scores and rationales (`--verdict`, `--min-score`) | `$0.00` |
| `dealport playbooks [list \| get <id> \| save]` | List Dealport library & workspace Playbooks, inspect a Playbook, or save rules & ranking factors | `$0.00` |
| `dealport projects [list \| leads \| create \| source \| run \| run-status]` | Manage workspace Projects, saved searches, schedules, and Playbook batches (`$0.00` quote / `$0.05` per checked Record) | `$0.00` / `$0.05` |
| `dealport watch <id1,id2,...>` | Monitor companies weekly in a Project (`--project`) | `$0.05`/co/mo |
| `dealport diff [--days 7]` | Read weekly cited leadership, hiring, license, and filing changes | `$0.00` |
| `dealport webhooks [list \| create \| test \| delete]` | Configure signed `X-Dealport-Signature` Project webhooks | `$0.00` |
| `dealport blocklist [list \| add \| remove]` | Manage NDA, portfolio, CRM, and passed-deal exclusions | `$0.00` |
| `dealport flags [list \| create \| resolve]` | Inspect or submit company fact curation flags | `$0.00` |
| `dealport avery [status \| reach-out \| accept-intro]` | Read Avery status (`$0.00`), queue outreach (`--yes`, up to 150 owners/mo self-serve), or accept a Warm Yes intro (`--yes`) | `$0.00` / `$0.02` / `$25.00` |
| `dealport mcp [claude \| cursor \| codex \| json]` | Print or write Remote Streamable HTTP MCP configuration | `$0.00` |

**Exit codes:** `0` success · `1` error or missing confirmation · `2` HTTP `402` insufficient USD balance or monthly spend cap reached.

---

## Pricing

### 1. API (Pro) - Pay as you go
No subscription. New accounts start with a **$5.00 free USD balance**. Repeat reads within 30 days in the same workspace are **$0.00**.

| Action | Price (USD) |
| --- | --- |
| Market sizing (`preview`), CSV matching (`match`), Playbooks, Projects, annotations, blocklist, flags, webhooks, diffs | **$0.00** |
| Repeat reads within 30 days (`search`, `buildings`, `record`, `owner`, `research`) | **$0.00** |
| Unverified / not-found owner lookup | **$0.00** |
| Opening a company or building `Record` (`search`, `buildings`, `record`) | **$0.01** |
| Website Markdown fetch (`pages`) | **$0.00** cached / **$0.01** live |
| Playbook check (`projects run`), monthly company watch in a `Project`, or NYC building owner lookup | **$0.05** |
| Verified human company owner / contact phone & email hit (`owner`, `contact`; `$0.00` on miss or 30-day repeat) | **$0.09** |
| Deep cited company research (`research`) | **$0.50** |
| Outreach by Avery (`avery reach-out --yes`, up to 150 owners/month self-serve) | **$0.02** / email |
| Accepted double-opt-in Warm Yes introduction (`avery accept-intro --yes`) | **$25.00** |

### 2. Enterprise - Dealport runs it for you
Dealport's team runs origination end-to-end: searches, Playbooks, custom domains, campaigns, pipeline, and CRM sync. Talk to Dealport at [dealport.com](https://dealport.com).

---

## OpenAPI Specification

A complete OpenAPI 3.1 specification for Custom GPT Actions, API gateways, and client generation is included at [`openapi/openapi.json`](./openapi/openapi.json) (`import spec from "dealport/openapi.json" with { type: "json" }`).

## License

[MIT](./LICENSE)