Sakeliga/advanced-elastic-mcp-api
If you are the rightful owner of advanced-elastic-mcp-api and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Elasticsearch Advanced MCP Server and API provide a comprehensive solution for semantic search and document management using Elasticsearch with ELSER v2, offering both REST API and Model Context Protocol (MCP) tools for seamless integration with applications and AI assistants.
Elasticsearch Advanced MCP Documentation
📚 Documentation Index
Welcome to the documentation for the Elasticsearch Advanced MCP Server and API. This system provides both Model Context Protocol (MCP) tools and REST API endpoints for semantic search and document management using Elasticsearch with ELSER v2.
Core Documentation
| Document | Description | Audience |
|---|---|---|
| Get up and running in 5 minutes | New users, developers | |
| Complete REST API reference | API developers, integrators | |
| MCP tools reference for AI assistants | AI developers, Claude users | |
| System design and components | Architects, senior developers |
Additional Resources
| Document | Description |
|---|---|
| Development instructions and workflow | |
| Detailed technical specification | |
| Step-by-step implementation guide |
🚀 What Can You Do?
With REST API
-
Search Operations
- Semantic search with ELSER v2
- File-filtered search
- Document discovery by topic
-
Document Management
- Write single documents
- Bulk write multiple documents
- Automatic ELSER indexing
With MCP Tools
-
AI Assistant Integration
- Direct tool access in Claude
- Natural language interaction
- Complex workflow automation
-
Same Functionality
- All API features available as MCP tools
- Consistent behavior across interfaces
- Full feature parity maintained
🎯 Choose Your Path
I want to...
Build a web application →
Use our REST API to integrate Elasticsearch semantic search into your application.
Use with Claude/AI assistants →
Connect AI assistants directly to your Elasticsearch data.
Get started quickly →
Set up and run your first search in 5 minutes.
Understand the architecture →
Learn how ELSER v2, LangChain, and our system components work together.
🔑 Key Features
Semantic Search with ELSER v2
- Context-aware search - Find documents by meaning, not just keywords
- 18% better relevance than traditional BM25 search
- No training required - Pre-trained model from Elastic
- Sparse vectors - More efficient than dense embeddings
Document Intelligence
- Admiralty Code ratings - Standard intelligence credibility scoring
- Security classifications - RESTRICTED, CONFIDENTIAL, SECRET
- Rich metadata - Track sources, timestamps, and properties
- Document relationships - Link chunks to parent documents
Dual Interface
- REST API - Standard HTTP endpoints for any application
- MCP Tools - Direct integration with AI assistants
- Feature parity - All features available in both interfaces
- Consistent behavior - Same results regardless of interface
📊 System at a Glance
┌─────────────────────────────────────────────────────┐
│ Your Application │
│ or │
│ AI Assistant (Claude) │
└─────────────┬────────────────────┬──────────────────┘
│ │
▼ ▼
┌──────────────┐ ┌──────────────┐
│ REST API │ │ MCP Tools │
│ Port: 8001 │ │ Port: 8000 │
└──────┬───────┘ └──────┬───────┘
│ │
└────────┬───────────┘
▼
┌─────────────────────┐
│ Core Search Engine │
│ (ELSER v2 + ES) │
└─────────────────────┘
▼
┌─────────────────────┐
│ Elasticsearch Cloud │
│ Your Documents │
└─────────────────────┘
🛠️ Technology Stack
| Component | Technology | Purpose |
|---|---|---|
| Search Model | ELSER v2 | Semantic search without embeddings |
| Search Engine | Elasticsearch Cloud | Scalable document storage |
| Vector Management | LangChain | Automatic ELSER configuration |
| API Framework | FastAPI | High-performance REST API |
| MCP Framework | FastMCP | AI assistant integration |
| Language | Python 3.11+ | Modern async support |
| Package Manager | uv | 10-100x faster than pip |
📈 Performance Characteristics
| Operation | Typical Time | Notes |
|---|---|---|
| Semantic search | 900-2000ms | Depends on result count |
| File search | 600-1500ms | Filtered to specific file |
| Document discovery | 2000-3000ms | Deduplication overhead |
| Single write | 1000-1500ms | Includes ELSER indexing |
| Bulk write (10 docs) | 2000-3000ms | Batched for efficiency |
🔒 Security Features
Document Classification
- Three-tier system: RESTRICTED, CONFIDENTIAL, SECRET
- Mandatory classification: Every document must be classified
- Filter by classification: Search within security levels
Credibility Scoring (Admiralty Code)
- Source reliability: A (completely reliable) to F (unknown)
- Information credibility: 1 (confirmed) to 6 (unknown)
- Industry standard: Used by intelligence agencies worldwide
Access Control
- Environment configuration: Writable index protected
- No index injection: Users cannot specify target indices
- API authentication ready: Add your auth layer
📞 Getting Help
Quick Links
- Issues: GitHub Issues
- Source Code: GitHub Repository
- Elasticsearch Docs: Elastic.co
- ELSER Guide: ELSER Documentation
Common Questions
Q: Should I use the API or MCP tools? A: Use the API for traditional applications, MCP for AI assistants. Both offer identical functionality.
Q: How do I choose credibility scores? A: See the in our MCP documentation.
Q: Why are searches taking 2+ seconds? A: ELSER v2 semantic processing adds overhead but provides much better relevance than keyword search.
Q: Can I specify which index to write to? A: No, for security the writable index is configured via environment variables only.
🎓 Learning Path
- Start Here: - Get running in 5 minutes
- Choose Interface: or documentation
- Understand Design: - How it all works
- Deep Dive: - Detailed specifications
🚀 Ready to Start?
→ to get your first search running in minutes!
Last updated: January 2025 | Version: 0.1.0