inventory-mcp
MCP server for Inventory (whereiput.it) that enables searching, full CRUD operations on items/locations/areas, and AI-powered photo recognition flow from MCP-compatible clients.
README
inventory-mcp
MCP server for Inventory (whereiput.it) — search your stuff, do full CRUD, and run the AI photo-assist flow from Claude Desktop, Claude Code, Codex, or any MCP-compatible client.
It is a thin scope-enforced proxy over the Inventory token API (/api/v1/inventory/*). It makes no auth decision: it forwards your inv_ bearer unchanged as an Authorization: Bearer header over HTTPS, and the API's 403/404 is the real boundary. The token is never placed in a URL and never logged.
Setup
npm install
npm run build
Get a token
Mint a personal API token in the SPA at https://whereiput.it/settings?tab=integrations (name + scopes read/write/ai). The raw inv_… secret is shown once — copy it into the installer.
Tool visibility is gated by the token's scopes: a read-only token never sees write/ai tools.
Install (curl | bash)
Interactive (prompts for token + client):
curl -fsSL https://mcp.whereiput.it | bash
Non-interactive, Codex:
curl -fsSL https://mcp.whereiput.it | bash -s -- inv_your_token_here codex
The installer gates on the inv_ prefix, configures Claude Code (claude mcp add) and/or Codex (codex mcp add + an idempotent managed-block shell export), and never embeds the token in a URL.
Transports & client config
Claude Code (remote HTTP)
claude mcp add inventory --transport http https://mcp.whereiput.it/mcp -H "Authorization: Bearer inv_…"
Codex (~/.codex/config.toml)
[mcp_servers.inventory]
url = "https://mcp.whereiput.it/mcp"
bearer_token_env_var = "INVENTORY_TOKEN"
Then set the token before starting Codex:
export INVENTORY_TOKEN="inv_your_token_here" # fish: set -gx INVENTORY_TOKEN inv_your_token_here
Claude Desktop (local stdio — zero infra)
{
"mcpServers": {
"inventory": {
"command": "node",
"args": ["/path/to/inventory-mcp/dist/stdio.js"],
"env": {
"INVENTORY_API_URL": "https://whereiput.it",
"INVENTORY_API_TOKEN": "inv_your_token_here"
}
}
}
}
Generic HTTP client
{ "type": "http", "url": "https://mcp.whereiput.it/mcp", "headers": { "Authorization": "Bearer inv_…" } }
Environment variables
| Variable | Default | Purpose |
|---|---|---|
INVENTORY_API_URL |
https://whereiput.it |
Inventory token API base URL. Deploy override: https://api.whereiput.it — the /api/v1/inventory/* routes are served by the Laravel backend on api., not the SPA host. |
INVENTORY_API_TOKEN |
— | The inv_ bearer (stdio only; HTTP takes it per-request) |
INVENTORY_MCP_PORT |
3100 |
HTTP transport listen port (the mcp.whereiput.it deploy uses 3119) |
INVENTORY_API_URL defaults to https://whereiput.it, but the production mcp.whereiput.it deploy
overrides it to https://api.whereiput.it (the host that actually serves /api/v1/inventory/*).
Tools
| Tool | Scope | API call |
|---|---|---|
list_areas, get_area |
read | GET areas[/{id}] |
list_locations, get_location |
read | GET areas/{id}/locations, locations/{id} |
search_items, get_item |
read | GET items/search?q=, items/{id} |
create_area / update_area / delete_area |
write | POST/PUT/DELETE areas |
create_location / update_location / delete_location |
write | POST areas/{id}/locations, PUT/DELETE locations/{id} |
create_item / update_item / delete_item |
write | POST locations/{id}/items, PUT/DELETE items/{id} |
create_category, create_tag |
write | POST categories / tags |
recognize_photo |
ai | POST items/recognize |
save_recognized |
ai | POST locations/{id}/items/bulk |
A user-invoked catalog_from_photo prompt walks the recognize → review → save flow.
AI photo-assist caveat (Phase 7 follow-up)
recognize_photo passes text-friendly args (image_base64 + mime + area_id). The Phase 7 recognize endpoint is multipart-only today. For the remote HTTP transport, the recognize endpoint likely needs a base64/JSON input-adapter branch (an input adapter only — no logic change). The ai tools + client methods ship now; the live end-to-end recognize call lights up once that input adapter lands. This is a documented sequencing acceptance, not a blocker.
Remote deploy (the heavier infra lift)
The remote Streamable HTTP transport (mcp.whereiput.it) is an operator task, not automatable from this repo:
- Run
node dist/http.jscontinuously under a process manager (this box uses supervisor:whereiput-mcp, port3119). - TLS-terminate + reverse-proxy
mcp.whereiput.it→ the Node process (the SDK speaks plain HTTP; HTTPS is the front). - Add a DNS A/AAAA record for
mcp.whereiput.it. - Set
INVENTORY_API_URLto the Inventory token API host (https://api.whereiput.it).
Sessions are tracked in an in-memory Map (single instance is adequate for v1; a multi-instance deploy would need sticky sessions).
stdio-local needs zero hosting — the Claude Desktop config above works entirely on the local machine with no remote endpoint.
Development
npm run dev # HTTP transport with tsx (no build step)
npm run dev:stdio # stdio transport with tsx
npm test # vitest
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。