An MCP (Model Context Protocol) server that exposes all MaxKB API endpoints as tools, enabling any MCP-compatible agent to programmatically manage a MaxKB instance — agents, knowledge bases, models, tools, chat, users, and more.
- 45+ MCP tools covering the full MaxKB Admin API surface
- Automatic authentication — logs in and refreshes tokens automatically
- Multiple transports — stdio, SSE, and streamable-http
- Docker-ready — includes Dockerfile for easy deployment
| Category | Tools | Description |
|---|---|---|
| Applications | 15 | CRUD agents, publish/unpublish, API keys, stats, MCP tools, model config |
| Chat | 3 | Send messages (OpenAI-compatible), list sessions, get history |
| Knowledge Bases | 7 | CRUD knowledge bases, hit test, embedding sync, export |
| Documents | 5 | Create text/web documents, list, get, delete |
| Paragraphs | 4 | CRUD paragraph chunks within documents |
| Models | 5 | List/configure LLM models, providers, model types |
| Tools | 6 | Manage MCP servers and HTTP tools, publish, debug |
| Users | 2 | User profile, workspace user list |
| Folders | 3 | Organize resources into folders |
| System | 2 | System settings and version info |
| Workflows | 2 | Get/update advanced agent workflow definitions |
| Import/Export | 1 | Export agent configurations |
pip install .cp .env.example .env
# Edit .env with your MaxKB URL and credentialsRequired environment variables:
| Variable | Description | Default |
|---|---|---|
MAXKB_URL |
MaxKB instance URL | https://maxkb.garzaos.cloud |
MAXKB_USERNAME |
Admin username | admin |
MAXKB_PASSWORD |
Admin password | (required) |
MCP_TRANSPORT |
Transport type: stdio, sse, streamable-http |
stdio |
MCP_HOST |
Host to bind (for SSE/HTTP) | 0.0.0.0 |
MCP_PORT |
Port to bind (for SSE/HTTP) | 8000 |
stdio mode (for local MCP clients like Claude Desktop):
MAXKB_PASSWORD=xxx maxkb-mcpSSE mode (for remote MCP clients):
MCP_TRANSPORT=sse MAXKB_PASSWORD=xxx maxkb-mcpDocker:
docker build -t maxkb-mcp .
docker run -p 8000:8000 \
-e MAXKB_URL=https://maxkb.garzaos.cloud \
-e MAXKB_USERNAME=admin \
-e MAXKB_PASSWORD=xxx \
-e MCP_TRANSPORT=sse \
maxkb-mcp{
"mcpServers": {
"maxkb": {
"command": "maxkb-mcp",
"env": {
"MAXKB_URL": "https://maxkb.garzaos.cloud",
"MAXKB_USERNAME": "admin",
"MAXKB_PASSWORD": "your-password"
}
}
}
}{
"maxkb-admin": {
"url": "https://your-host:8000/sse",
"transport": "sse"
}
}list_applications— List all agentsget_application— Get agent detailscreate_application— Create new agent (SIMPLE or WORK_FLOW)update_application— Update agent config (name, model, MCP servers, etc.)delete_application— Delete an agentpublish_application— Publish agent for public accessunpublish_application— Remove public accessget_application_access_token— Get public chat URL tokenlist_application_api_keys— List API keyscreate_application_api_key— Create new API keyget_application_stats— Usage statisticsget_application_token_usage— Token consumptionget_application_top_questions— Most-asked questionslist_application_mcp_tools— List MCP tools available to agentget_application_model— Get model configuration
chat_completions— Send a message (OpenAI-compatible format)list_chat_sessions— List conversation sessionsget_chat_messages— Get messages in a session
list_knowledge_bases— List all knowledge basesget_knowledge_base— Get KB detailscreate_knowledge_base— Create new KBupdate_knowledge_base— Update KBdelete_knowledge_base— Delete KBknowledge_hit_test— Test retrieval with a querysync_knowledge_embedding— Re-embed documentsexport_knowledge_base— Export KB
list_documents— List documents in a KBget_document— Get document detailscreate_text_document— Create text documentcreate_web_document— Import from URLdelete_document— Delete document
list_paragraphs— List chunks in a documentcreate_paragraph— Add a chunkupdate_paragraph— Update chunk contentdelete_paragraph— Delete a chunk
list_models— List configured modelsget_model— Get model detailscreate_model— Configure a new modeldelete_model— Remove a modellist_model_providers— Available providerslist_model_types— Available model types
list_tools— List all tools/MCP serversget_tool— Get tool detailscreate_tool— Register a new tooldelete_tool— Remove a toolpublish_tool— Publish a tooldebug_tool— Test a tool
get_application_workflow— Get workflow graphupdate_application_workflow— Update workflow
get_user_profile— Current user infolist_workspace_users— Workspace memberslist_folders/create_folder/delete_folder— Folder managementget_system_setting/get_system_version— System infoexport_application— Export agent config
MIT