Agent Knowledge MCP
Integrated as a payment method for supporting the project development.
Provides full-featured search, indexing, and document management with Elasticsearch, including smart search with multi-field queries, document CRUD operations with validation, index administration, and schema validation.
Supports version control workflows with Git including repository setup, intelligent file tracking with change detection, and the ability to retrieve previous versions of files.
Integrated as a payment method for supporting the project with different sponsor tiers that provide varying benefits.
Integrated as a payment method for supporting the project development.
Integrated as a payment method for supporting the project development.
Click on "Deploy 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 Knowledge MCP search for API authentication documentation"
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 Knowledge MCP π
Complete knowledge management for AI assistants
MCP server with Elasticsearch search and document management.
π Features
π All-in-One Solution:
π Elasticsearch: Search, index, and manage documents
π Document Validation: Schema-enforced structure
βοΈ Configuration: Complete config management
π‘οΈ Security: Sandboxed operations
β¨ Benefits:
π― 20 Tools for knowledge management
π€ Works with any MCP-compatible AI (Claude, ChatGPT, VS Code, etc.)
π Smart document management with validation
β‘ Elasticsearch integration for powerful search
Related MCP server: SourceSync.ai MCP Server
β‘ Quick Start
Installation
# Install with uvx (recommended)
uvx agent-knowledge-mcpSetup for Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"agent-knowledge": {
"command": "uvx",
"args": ["agent-knowledge-mcp"]
}
}
}Setup for VS Code
π οΈ What You Can Do
Try these with your AI assistant:
"Search documents for API authentication info"
"Index this document with proper tags"
"Create API documentation template"
"Find related documents on specific topics"
"Update configuration settings"
"Validate document structure"
π§ Tools Overview
Tools for knowledge management:
Category | Tools | Description |
π Elasticsearch | 9 | Search, index, manage documents |
βοΈ Administration | 11 | Config, security, monitoring |
π Security & Configuration
Enterprise-grade security:
β Sandboxed operations - Configurable access controls
β Strict schema validation - Enforce document structure
β Audit trails - Full operation logging
β No cloud dependencies - Everything runs locally
Configuration example:
{
"security": {
"log_all_operations": true
},
"document_validation": {
"strict_schema_validation": true,
"allow_extra_fields": false
}
}π€ Contributing & Support
Development
git clone https://github.com/itshare4u/AgentKnowledgeMCP.git
cd AgentKnowledgeMCP
pip install -r requirements.txt
python3 src/main_server.pySupport the Project
Transform your AI into a powerful knowledge management system! π
MIT License - Complete knowledge management solution for AI assistants
Available Tools
27 toolsask_mcp_adviceC
Advanced project guidance using AI-filtered knowledge from .knowledges directory
Inputs: intended_action (required), task_description (required), scope. Returns: result
ask_user_adviceA
Ask user for advice when agent encounters uncertainty, problems, or needs guidance. Use this when you're unsure about something or need human input to proceed properly.
Inputs: problem_description, context_information, specific_question, options_considered, +1 more. Returns: result
batch_index_directoryA
Batch index all documents from a directory into Elasticsearch with AI-enhanced metadata generation and comprehensive file processing
Inputs: index (required), directory_path (required), file_pattern, validate_schema, +4 more. Returns: result
create_document_templateC
Create a properly structured document template for knowledge base with AI-generated metadata and formatting
Inputs: title (required), content, priority, source_type, +5 more. Returns: result
create_indexB
Create a new Elasticsearch index with optional mapping and settings configuration
Inputs: index (required), mapping (required), settings. Returns: result
create_index_metadataB
Create metadata documentation for an Elasticsearch index to ensure proper governance and documentation
Inputs: index_name (required), description (required), purpose (required), data_types, +5 more. Returns: result
create_snapshotC
Create a snapshot (backup) of Elasticsearch indices with comprehensive options and repository management
Inputs: snapshot_name (required), repository, indices, ignore_unavailable, +3 more. Returns: result
delete_documentB
Delete a document from Elasticsearch index by document ID
Inputs: index (required), doc_id (required). Returns: result
delete_indexA
Delete an Elasticsearch index and all its documents permanently
Inputs: index (required). Returns: result
delete_index_metadataB
Delete metadata documentation for an Elasticsearch index
Inputs: index_name (required). Returns: result
elasticsearch_statusB
Check status of Elasticsearch and Kibana containers with detailed configuration information
Inputs: no named parameters. Returns: result
get_configB
Get the complete configuration from config.json file with formatted display
Inputs: no named parameters. Returns: result
get_documentA
Retrieve a specific document from Elasticsearch index by document ID
Inputs: index (required), doc_id (required). Returns: result
index_documentA
Index a document into Elasticsearch with smart duplicate prevention and intelligent document ID generation. π‘ RECOMMENDED: Use 'create_document_template' tool first to generate a proper document structure and avoid validation errors.
Inputs: index (required), document (required), doc_id, validate_schema, +3 more. Returns: result
list_indicesA
List all available Elasticsearch indices with document count and size statistics
Inputs: no named parameters. Returns: result
list_snapshotsC
List all snapshots in an Elasticsearch repository with detailed information and status
Inputs: repository, verbose. Returns: result
reload_configB
Reload configuration from config.json file and reinitialize all components with updated settings
Inputs: no named parameters. Returns: result
reset_configA
Reset config.json to defaults from config.default.json (manual reset - overwrites current config)
Inputs: no named parameters. Returns: result
restore_snapshotC
Restore indices from an Elasticsearch snapshot with comprehensive options and conflict resolution
Inputs: snapshot_name (required), repository, indices, ignore_unavailable, +4 more. Returns: result
searchC
Search documents in Elasticsearch index with advanced filtering, pagination, and time-based sorting capabilities
Inputs: index (required), query (required), size, fields, +4 more. Returns: result
server_statusB
Check current server status, version, and available updates with comprehensive system information
Inputs: check_updates. Returns: result
server_upgradeA
Upgrade this MCP server when installed via uvx with automatic configuration backup and restoration
Inputs: no named parameters. Returns: result
setup_elasticsearchB
Auto-setup Elasticsearch using Docker with optional Kibana and force recreate options
Inputs: include_kibana, force_recreate. Returns: result
update_configB
Update configuration with section-specific changes or full configuration replacement
Inputs: config_section, config_key, config_value, full_config. Returns: result
update_index_metadataB
Update existing metadata documentation for an Elasticsearch index
Inputs: index_name (required), description, purpose, data_types, +5 more. Returns: result
validate_configB
Validate configuration object structure, types, and values with comprehensive error reporting
Inputs: config. Returns: result
validate_document_schemaB
Validate document structure against knowledge base schema and provide formatting guidance
Inputs: document (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 27 tools
Most tools have distinct purposes, but some overlap exists. For example, 'ask_mcp_advice' and 'ask_user_advice' both involve seeking guidance, which could cause confusion. However, their descriptions clarify that one uses AI-filtered knowledge and the other involves human input, helping to differentiate them. Overall, the tools are well-defined with minimal ambiguity.
Tool names follow a consistent snake_case pattern with clear verb_noun structures, such as 'create_document_template', 'delete_index', and 'validate_config'. There are no deviations in naming conventions, making the set predictable and easy to understand. This consistency aids in agent selection and reduces confusion.
With 27 tools, the count is borderline high for an MCP server focused on Elasticsearch and knowledge management. While it covers many operations, it may feel heavy and could overwhelm agents. A more streamlined set of 15-20 tools might be more appropriate, but the current scope is still manageable given the domain's complexity.
The tool surface provides comprehensive coverage for Elasticsearch operations and knowledge base management, including CRUD for documents and indices, configuration handling, backup/restore, and validation. There are no obvious gaps; agents can perform full lifecycle management, from setup to maintenance, without encountering dead ends.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
A Model Context Protocol server for Wix AI tools
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with Elasticsearch clusters, allowing them to manage indices and execute search queries using natural language.2-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.251ISC
- FlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.2-

CodeAlive MCPofficial
AlicenseNot gradedqualityBmaintenanceA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.90MIT