
Model Context Protocol (MCP) server for TAK Server integration with geospatial support
概览
A Model Context Protocol (MCP) server for integrating TAK Server with AI systems, enabling geospatial-aware deep research and analysis capabilities. - - Standard input/output for CLI integration - - Server-Sent Events for web integration - - Real-time bidirectional communication - tak_spatial_query - Query entities within geographic areas - tak_calculate_distance - Distance calculations with travel time estimates - tak_find_nearest - Find nearest entities with bearings - tak_create_geofence - Create geofenced areas with alerts - tak_analyze_movement - Track movements and detect anomalies - tak_get_cot_events - Retrieve Cursor on Target events - tak_send_cot_event - Send CoT messages - tak_subscribe_events - Subscribe to live event streams - tak_get_entities - Get current entity states - tak_get_missions - List and manage missions - tak_get_alerts - Retrieve and filter alerts - tak_send_emergency - Send emergency broadcasts - tak_manage_data_packages - Upload/download data...
README
以下为原文 README 节选,完整内容请查看原文。
TAK Server MCP (Model Context Protocol)
A Model Context Protocol (MCP) server for integrating TAK Server with AI systems, enabling geospatial-aware deep research and analysis capabilities.
🚀 Features
Multi-Transport Support
- stdio - Standard input/output for CLI integration
- HTTP+SSE - Server-Sent Events for web integration
- WebSocket - Real-time bidirectional communication
Complete Tool Suite (11 Tools)
📍 Geospatial Operations
tak_spatial_query- Query entities within geographic areastak_calculate_distance- Distance calculations with travel time estimatestak_find_nearest- Find nearest entities with bearingstak_create_geofence- Create geofenced areas with alertstak_analyze_movement- Track movements and detect anomalies
📡 Real-time Operations
tak_get_cot_events- Retrieve Cursor on Target eventstak_send_cot_event- Send CoT messagestak_subscribe_events- Subscribe to live event streamstak_get_entities- Get current entity states
🚨 Mission & Emergency
tak_get_missions- List and manage missionstak_get_alerts- Retrieve and filter alertstak_send_emergency- Send emergency broadcaststak_manage_data_packages- Upload/download data packages
Advanced Features
- 🔐 Multiple authentication methods (OAuth 2.0, API tokens, certificates)
- 📊 H3 hexagonal indexing for spatial queries
- 🗺️ MGRS coordinate conversion
- ⚡ Real-time WebSocket subscriptions
- 💾 Intelligent caching with TTL
- 🔍 Comprehensive error handling
📋 Prerequisites
- Node.js >= 18.0.0
- TAK Server instance (one of):
- TAK Server (Official)
- FreeTAKServer (Open Source)
- taky (Lightweight, CoT only)
🛠️ Installation
Using NPM
npm install @skyfi/tak-server-mcp
From Source
git clone https://github.com/skyfi/tak-server-mcp.git
cd tak-server-mcp
npm install
npm run build
Using Docker
docker pull skyfi/tak-server-mcp:latest
⚙️ Configuration
Environment Variables
# TAK Server Connection
TAK_SERVER_URL=https://your-tak-server.com
TAK_SERVER_API_TOKEN=your-api-token
TAK_SERVER_CLIENT_CERT=/path/to/cert.pem
TAK_SERVER_CLIENT_KEY=/path/to/key.pem
# MCP Configuration
MCP_TRANSPORT=stdio
MCP_PORT=3000
MCP_AUTH_ENABLED=false
Configuration File
Create a config.json:
{
"takServer": {
"url": "https://your-tak-server.com",
"apiToken": "your-token",
"verifySsl": true
},
"mcp": {
"transport": "stdio",
"port": 3000
},
"tools": {
安装
npx @skyfi/tak-server-mcp配置
{
"mcpServers": {
"tak-server": {
"command": "npx",
"args": ["@skyfi/tak-server-mcp"],
"env": {
"TAK_SERVER_URL": "https://your-tak-server.com",
"TAK_SERVER_API_TOKEN": "your-token"
}
}
}
}