
# Architect MCP Server
**The AI agent workshop that builds its own tools.**
---
## 🚀 What is Architect?
AI agents are incredibly smart, but they hit a wall when they need a tool that doesn't exist yet. **Architect MCP removes that wall.**
Instead of giving your AI agent a fixed, rigid toolbox, you give it an entire *workshop*. If your agent needs to call an unconventional API, parse an obscure file format, or hook into a database, it simply writes a custom tool for it on the fly.
Once approved by you, that tool runs securely in an isolated sandbox. The next time your agent hits the same problem? The customized tool is already there, ready to go.
---
## ✨ Key Features
- **Automated Tool Creation:** Agents construct, test, and permanently save their own JavaScript tools on the fly.
- **Ironclad Security & Sandboxing:** Every custom tool is executed in a highly restricted sandbox. Network or file system access requires explicit user approval through granular capability scopes.
- **Built-in Web Dashboard:** A beautiful, real-time dashboard UI (running on port `3001` out of the box). Manage your active tools, watch execution logs unfold in real time, monitor failures, and securely manage secrets.
- **Cron Scheduling:** Not just for manual use! Agents can set up custom tools to run on cron schedules or build continuous background pipelines.
- **Global Marketplace:** Why build from scratch if someone else already did? Agents can search (`marketplace_browse`), install (`marketplace_install`), and even share your creations (`marketplace_publish`) using a GitHub token.
- **Persistent Data Layer:** Built-in, blazing-fast SQLite storage to manage tools, run logs, and execution states reliably.
---
## 🛠️ Getting Started
### 1. Simple Local Setup
You can get running in seconds if you have Node.js installed.
```bash
npm install
npm run build
npm start
```
Or once published to npm, run it with zero setup:
```bash
npx architect-mcp-server
```
MCP client config (Claude Desktop / Claude Code / Cursor):
```json
{
"mcpServers": {
"architect": {
"command": "npx",
"args": ["architect-mcp-server"]
}
}
}
```
*(Pro-tip: For development, use `npm run dev` to enable auto-restarts.)*
### 2. Docker Setup (Recommended)
Don't want to mess with Node environments? Just spin it up with Docker Compose:
```bash
docker compose up -d
```
Your data and tools remain safe inside persistent Docker volumes, and the dashboard is instantly available at `http://localhost:3001`.
---
## ⚙️ Gateway API (Token Optimization)
Every exposed MCP tool costs context tokens in the AI client's session. Architect exposes its entire management surface through just **8 gateway tools** (~2K tokens total instead of ~23K for 170+ individual tools):
| Gateway | Covers |
|---|---|
| `tool` | create, update, validate, approve, activate, test, version, templates, import/export |
| `find` | list, search, view source, dependency graph, intent matching |
| `run` | batches, aliases, pipelines |
| `automate` | cron schedules, webhooks |
| `store` | secrets, key-value memory, MCP resources and prompts |
| `share` | marketplace publish/browse/install, peers |
| `admin` | stats, audit logs, caches, anomalies, personas, system status |
| `browser` | all browser automation actions |
Each gateway is called as `{action: "