agent-tenant-user-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-tenant-user-mcplist all tenants"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-tenant-user-mcp
MCP server for the MSPbots Agent Platform tenant/user API — lets an Agent list platform tenants and platform users.
Naming note: this is not a third-party vendor integration. It wraps an internal MSPbots App API on the Agent Platform. "MSP" in the header names below refers to the MSPbots Agent Platform itself, not an external MSP tool vendor.
Overview
Stateless HTTP service. No credentials are ever persisted — each request supplies its own bearer token/tenant/host via headers, used only for the lifetime of that single request.
Supports concurrent requests; per-request credential isolation is done via Python
contextvars, not a global/shared client instance.Entry points:
POST /mcp(MCP protocol) andGET /health(health check).Default port:
8080(configurable viaMCP_HTTP_PORT).
Related MCP server: sherweb-mcp
Scope
2 tools:
mspbots_user_list_tenants— paginated + filterable, returns platform tenants (requiressuperAdmin/adminrole).mspbots_user_list_users— paginated, returns platform users (the set of assignable owners).
Authentication
This server requires, per request:
Authorization: Bearer <JWT>(EdDSA-signed) — tenant/user/role are decoded from the JWT itself.A tenant identifier value for platform routing.
The Agent Platform host, supplied per-request since different environments may use different hosts.
HEADER 授权参数说明
Header | 类型 | 是否必填 | 默认值 | 枚举值 | 字段描述 | Example |
| string | 是 | 无 | 无(自由文本,JWT) | Agent Platform 已签发的访问凭证(EdDSA 签名的 JWT bearer token)。本服务原样转发为下游请求的 |
|
| string | 是 | 无 | 无(自由文本,UUID) | 租户标识。转发给下游 API 作为平台路由层判断请求归属哪个租户的机制。 |
|
| string | 是 | 无 | 无(自由文本,base URL) | Agent Platform 所在的 host。本服务会拼接内部 App API 路径得到完整请求地址。 |
|
Missing any header returns 401:
{
"error": "Missing credentials",
"message": "This server requires the X-MSP-Token header (Agent Platform bearer access credential), the X-MSP-Tenant-Id header, and the X-MSP-Host header (Agent Platform host)",
"required_headers": ["X-MSP-Token", "X-MSP-Tenant-Id", "X-MSP-Host"],
"optional_headers": []
}Environment Variables
Variable | 类型 | 是否必填 | 默认值 | 说明 |
| int | 否 |
| HTTP 监听端口 |
| string | 否 |
| HTTP 监听地址 |
MCP Endpoint
POST /mcp— MCP protocol (streamable HTTP transport)GET /health— health check, returns{"status": "ok", "service": "agent-tenant-user-mcp", "transport": "http"}
Tool List
Tool | 功能 | 参数 |
| 分页获取全平台租户列表,支持关键字/启用状态/注册时间区间过滤(需 superAdmin/admin 角色) | page(可选,默认1), page_size(可选,默认20), search(可选), is_active(可选), created_from(可选), created_to(可选) |
| 分页获取全平台用户列表(可分配 owners,返回 id/email/displayName/userName) | page(可选,默认1), page_size(可选,默认100) |
mspbots_user_list_tenants 的 search/is_active/created_from/created_to combine as AND; results are always sorted by createdAt descending; an invalid date value in created_from/created_to is silently ignored (not an error).
测试示例
# Health check
curl -s http://localhost:8080/health
# Call a tool via the MCP protocol (streamable HTTP) — requires an
# initialize handshake first per the MCP spec; abbreviated example below
# shows the tool-call request body only:
curl -s -X POST http://localhost:8080/mcp \
-H "X-MSP-Token: <jwt>" \
-H "X-MSP-Tenant-Id: <tenant-uuid>" \
-H "X-MSP-Host: <platform-host>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: <session-id-from-initialize>" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "mspbots_user_list_users",
"arguments": {"page": 1, "page_size": 100}
}
}'Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Read-only MCP server for turva.dev, an agent-readiness audit and advisory service.
Sherweb Platform MCP server to manage subscriptions and orders. Use OpenID Connect to authenticate.
Related MCP Servers
- FlicenseBqualityAmaintenanceAn MCP server for CIPP (Community IT Professionals Platform), enabling MSPs to manage Microsoft 365 tenants, users, policies, and security settings through CIPP's API.4312-
- AlicenseAqualityAmaintenanceMCP server for Sherweb Partner API - distributor billing, service provider management, customer subscriptions, and payable charges12Apache 2.0
- AlicenseAqualityAmaintenanceMCP server for interacting with the ThreatLocker Portal API, enabling querying of computers, applications, policies, audit logs, and more through AI assistants.181GPL 3.0
- FlicenseNot gradedqualityBmaintenanceMulti-tenant MCP server with OAuth 2.1 authorization, enabling tenant-scoped tool access and audit logging.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MSPbotsAI/agent-tenant-user-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server