
ghidra-mcp v6.0.0
एमसीपी सर्वर जो घिड्रा के रिवर्स इंजीनियरिंग को एआई उपकरणों से जोड़ता है: डिकंपाइलेशन, पी-कोड एमुलेशन, लाइव डिबगिंग, डेटा प्रवाह विश्लेषण, बैच संचालन और कन्वेंशन प्रवर्तन के लिए 256 उपकरण, हेडलेस और जीयूआई मोड में।
Ghidra MCP Server
अगर आपको यह उपयोगी लगे, तो कृपया रेपो को ⭐ स्टार करें — इससे दूसरों को इसे खोजने में मदद मिलती है!
अगर Ghidra MCP आपका समय बचाता है, तो प्रोजेक्ट को स्पॉन्सर करने पर विचार करें। एकमुश्त और आवर्ती दोनों तरह का समर्थन compatibility अपडेट, production hardening, दस्तावेज़ीकरण, और नई tooling को फंड करने में मदद करता है।
एक production-ready Model Context Protocol (MCP) सर्वर जो Ghidra की शक्तिशाली reverse engineering क्षमताओं को आधुनिक AI टूल्स और automation फ्रेमवर्क से जोड़ता है। 253 MCP tools, battle-tested AI workflows, और उपलब्ध सबसे व्यापक Ghidra-MCP एकीकरण — अब P-code emulation, live debugger integration, और PCode-graph data flow analysis सहित।
Ghidra MCP क्यों?
अधिकांश Ghidra MCP implementations आपको मुट्ठी भर read-only tools देते हैं और बात खत्म। यह प्रोजेक्ट अलग है — इसे एक reverse engineer ने बनाया है जो इसे रोज़ असली binaries पर उपयोग करता है, किसी demo के तौर पर नहीं।
- 253 MCP tools — किसी भी प्रतिस्पर्धी implementation से 3 गुना अधिक। केवल read operations नहीं — renaming, typing, commenting, structure creation, script execution, P-code emulation, और live debugging के लिए पूर्ण write access।
- Battle-tested AI workflows — सैकड़ों functions पर परिष्कृत सिद्ध documentation workflows (V5)। इसमें step-by-step prompts, Hungarian notation reference, batch processing guides, और orphaned code discovery शामिल हैं।
- Production-grade reliability — Atomic transactions, batch operations (93% API call reduction), configurable timeouts, और graceful error handling। कोई silent failures नहीं।
- Cross-binary documentation transfer — SHA-256 function hash matching स्वचालित रूप से binary versions के आर-पार documentation propagate करता है। एक बार document करें, हर जगह लागू करें।
- पूर्ण Ghidra Server integration — साझा Ghidra servers से कनेक्ट करें, repositories प्रबंधित करें, version control, checkout/checkin workflows, और multi-user collaboration।
- Headless और GUI modes — Ghidra GUI के साथ या उसके बिना चलाएँ। CI/CD pipelines और बड़े पैमाने पर automated analysis के लिए Docker-ready।
- Opinionated by design — v5.0 naming conventions, type safety, और documentation standards को tool layer में ले जाता है। AI agents और human engineers हर prompt में style guides डाले बिना सुसंगत output उत्पन्न करते हैं।
Convention Enforcement
आप वहाँ रह चुके हैं: किसी प्रोजेक्ट में छह महीने बाद आपको एक ही codebase में ProcessItem, process_items, handleItem, और ItemProc मिलते हैं — चार functions एक ही काम कर रहे हैं, जिन्हें चार अलग sessions या engineers ने बिना किसी साझा contract के नाम दिया। इसे ठीक करने में ज़रूरत से ज़्यादा समय लगता है, और समस्या फिर होगी।
v5.0 conventions को "याद रखने वाली चीज़ों" से tool layer में ले जाता है, जहाँ उन्हें वास्तव में लागू किया जा सकता है।
| Tier | Behavior | Example |
|---|---|---|
| Auto-fix | चुपचाप लागू | uint32 पर count field → save पर स्वतः dwCount prefix |
| Warn | परिवर्तन हो जाता है, warning लौटाई जाती है | processData → "name should be PascalCase with a verb: ProcessData" |
| Reject | स्पष्टीकरण के साथ परिवर्तन अवरुद्ध | undefined → undefined type change → "no-op rejected, type unchanged" |
AI agents के लिए, इसका मतलब है हर session, हर model, हर run में सुसंगत output — बिना हर prompt में style guide पेस्ट किए। Tool को नियम पता हैं; model को बस निर्णय लेना है।
टीमों के लिए, यह उस पूरी श्रेणी के review comment को खत्म कर देता है जो कहता है "यह हमारी naming convention नहीं है।" Convention arbitration tool में रहता है, code review में नहीं।
बड़े पैमाने पर solo काम के लिए, analyze_function_completeness आपको 0–100% स्कोर देता है जो ईमानदारी से मापता है: structural deductions (unfixable compiler artifacts) आपके effective score में माफ कर दिए जाते हैं, log-scaling एक खराब category को बाकी सब कुछ दबाने से रोकता है, और tiered plate comment quality का मतलब है कि आपको ठीक-ठीक पता है क्या गायब है और क्यों।
🌟 Features
Core MCP Integration
- पूर्ण MCP Compatibility — Model Context Protocol का पूर्ण implementation
- 253 MCP tools — binary analysis के हर पहलू को कवर करने वाला व्यापक API surface
- Production-Ready Reliability — Atomic transactions, batch operations, configurable timeouts
- Real-time Analysis — Ghidra के analysis engine के साथ live integration
Compatibility note: MCP tool names को GitHub Copilot CLI और CAPI validation के लिए normalized किया गया है। Exposed tool names में केवल lowercase letters, digits, underscores, और hyphens का उपयोग होता है; nested HTTP paths जैसे
/debugger/statusको ज़रूरत पड़ने परdebugger_status_2जैसे नामों के रूप में advertise किया जाता है ताकि static bridge tools के साथ collisions से बचा जा सके।
Binary Analysis Capabilities
- Function Analysis — Decompilation, call graphs, cross-references, completeness scoring
- Data Flow Analysis — किसी भी variable या register से PCode-graph value propagation (forward / backward)
- Data Structure Discovery — field analysis और naming suggestions के साथ Struct/union/enum creation
- String Extraction — Regex search, quality filtering, और string-anchored function discovery
- Import/Export Analysis — Symbol tables, external locations, ordinal import resolution
- Memory & Data Inspection — Raw memory reads, byte pattern search, array boundary detection
- Cross-Binary Documentation — versions के आर-पार function hash matching और documentation propagation