invgate-mcp
A read-only MCP server for InvGate Asset Management, enabling natural language queries for assets, people, computers, servers, software, and API health.
README
invgate-mcp
A curated Model Context Protocol (MCP) server that exposes 12 read-only tools over stdio for InvGate Asset Management. Any MCP-compatible client (Claude Desktop, etc.) can query assets, people, computers, servers, software, and API health through natural language.
- Transport: stdio only (the universal default for local agents).
- Auth: OAuth2 client-credentials flow (
scope=read), in-memory token cache with a 60-second expiry buffer and one-shot 401 retry. - Validation: every tool input is validated with zod;
invalid input returns a structured
validation_errorwithout calling the API. - Resilience: HTTP, auth, and network failures are converted to MCP text
content with
isError: true— the server never crashes the host. - Distribution: published to npm, runnable via
npx invgate-mcp.
Install
# Run without installing
npx invgate-mcp
# Or install globally
npm install -g invgate-mcp
invgate-mcp
Configuration
The server reads three required environment variables at startup:
| Env var | Description | Example |
|---|---|---|
INVGATE_BASE_URL |
InvGate public API base URL (ends with /public-api/v2) |
https://acme.invgate.net/public-api/v2 |
INVGATE_CLIENT_ID |
OAuth2 client ID | my-client-id |
INVGATE_CLIENT_SECRET |
OAuth2 client secret | my-client-secret |
If any are missing the server prints a descriptive error to stderr and exits with code 1.
The OAuth2 token endpoint is derived from INVGATE_BASE_URL by stripping the
/public-api/v2 segment and appending /oauth2/token/, so
https://acme.invgate.net/public-api/v2 → https://acme.invgate.net/oauth2/token/.
Claude Desktop config
Add invgate-mcp to your mcpServers block
(~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"invgate": {
"command": "npx",
"args": ["-y", "invgate-mcp"],
"env": {
"INVGATE_BASE_URL": "https://acme.invgate.net/public-api/v2",
"INVGATE_CLIENT_ID": "your-client-id",
"INVGATE_CLIENT_SECRET": "your-client-secret"
}
}
}
}
Tools
| Tool | Input | Behavior |
|---|---|---|
invgate_list_asset_types |
none | Returns all asset types |
invgate_list_assets |
page, per_page, asset_type_id, criteria |
Paginated asset list with optional filters |
invgate_get_asset |
asset_id (required) |
Single asset by ID |
invgate_list_people |
page, per_page, criteria |
Paginated people list |
invgate_get_person |
person_id (required) |
Single person by ID |
invgate_get_person_assets |
person_id (required), page, per_page |
Assets assigned to a person |
invgate_list_computers |
page, per_page, criteria |
Assets of type "computer" |
invgate_get_computer |
asset_id (required) |
Single computer asset |
invgate_list_servers |
page, per_page, criteria |
Assets of type "server" |
invgate_get_server |
asset_id (required) |
Single server asset |
invgate_get_health |
none | API connectivity status |
invgate_list_software |
page, per_page, criteria |
Paginated installed-software catalog |
Parameter mapping
Tool inputs use snake_case; the server maps them to the InvGate API query
parameters. per_page → page_size, asset_type_id → asset_types.
The criteria object maps to InvGate's nested syntax:
{ "name": "cont:MacBook" } becomes criteria[name]=cont:MacBook on the
query string (op examples: cont, eq, startswith, …).
Results & errors
- Success: the raw JSON response body, pretty-printed, as MCP
textcontent. - Errors: structured JSON
{ "error": "...", "message": "...", "status": ... }as text content withisError: true. Types:validation_error,auth_error,api_error,network_error.
Development
npm install
npm run build # tsup → dist/index.js (single ESM bundle)
npm run typecheck # tsc --noEmit
npm test # vitest run (59 tests, MSW for HTTP interception)
npm run test:coverage # vitest run --coverage (80% gate on src/**)
npm run dev # tsx src/index.ts
Requires Node.js 20+ (uses native fetch).
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。