Provides comprehensive automation and control for Notepad++, including file operations (open, create, save), text manipulation (insert, search), tab management (list, switch, close), session management (save, load workspaces), and real-time status monitoring through Windows API integration.
Notepad++ MCP Server
FastMCP 2.12 compatible MCP server for comprehensive Notepad++ automation and control.
✨ 15 powerful tools including advanced tab and session management 🧪 18 comprehensive tests with real Windows API integration 🎯 Production-ready with structured logging and error handling
🚀 Installation & Setup
📦 Option 1: DXT Installation (Recommended)
Download the latest DXT file from Releases
Open Claude Desktop
Go to Settings → Developer → MCP Servers
Drag & Drop the DXT file onto the extensions screen
Restart Claude Desktop - the server will auto-install and configure
🐍 Option 2: Python Installation
⚙️ Claude Desktop Configuration
Add to your Claude Desktop configuration:
🔧 Manual Configuration (if needed)
📋 Requirements
🖥️ System Requirements
Windows 10/11 (64-bit)
Notepad++ 8.0+ installed and accessible
Python 3.10+ with pip
pywin32 for Windows API integration
🛠️ Dependencies
FastMCP 2.12+ - MCP framework
pywin32 - Windows API bindings
psutil - System monitoring
pathlib - Path operations
🚨 Important Notes
Notepad++ must be installed on the system
Server requires Windows API access (pywin32)
First run may require Notepad++ to be started manually
🎯 New in v1.0: Advanced Workspace Management
📑 Tab Management Tools
Organize and navigate multiple open files efficiently:
List all tabs: See filenames, modification status, and active tab
Switch tabs: Jump to any tab by index (0-based)
Close tabs: Remove tabs individually or current tab
💾 Session Management Tools
Save and restore your entire workspace:
Save sessions: Preserve all open files and cursor positions
Load sessions: Restore complete workspace state
List sessions: Browse saved workspace configurations
💡 Usage Examples
📁 Project Structure
📚 Documentation
Complete API Documentation - Comprehensive guide
Product Requirements Document - Vision and roadmap
Configuration Examples - Integration templates
🛠️ Tools Overview (15 Total)
Category | Tools | Description |
File Operations | 4 | Create, open, save, and inspect files |
Text Operations | 2 | Insert and search text content |
Status & Info | 3 | Monitor system and document state |
Tab Management | 3 | Organize and navigate multiple files |
Session Management | 3 | Save and restore workspace states |
Total: 15 production-ready tools with comprehensive Windows API integration.
⚡ Features
📁 File Operations (4 tools)
open_file
- Open files in Notepad++new_file
- Create new filessave_file
- Save current fileget_current_file_info
- Get file metadata
📝 Text Operations (2 tools)
insert_text
- Insert text at cursor positionfind_text
- Search text with case sensitivity options
📊 Status & Information (3 tools)
get_status
- Notepad++ status and window infoget_system_status
- Comprehensive system diagnosticsget_help
- Hierarchical help system
📑 Tab Management (3 tools) ✨ NEW
list_tabs
- List all open tabs with metadataswitch_to_tab
- Switch between tabs by indexclose_tab
- Close tabs by index or current tab
💾 Session Management (3 tools) ✨ NEW
save_session
- Save workspace to named sessionload_session
- Load saved sessionslist_sessions
- List all saved sessions
🔧 Core Capabilities
🎯 Windows Integration: Native Windows API with pywin32
⚡ FastMCP 2.12: Latest MCP framework compliance
📝 Structured Logging: Professional error handling
🧪 Comprehensive Testing: 18 tests covering all tools
📚 Self-Documenting: Built-in help system
🛠️ Development
🧪 Testing
18 comprehensive tests covering all tools
Real Windows API testing with actual Notepad++ integration
Demonstration script (
demonstration_test.py
) tests live functionalityCI/CD ready with automated testing pipeline
🏗️ Architecture
🎯 Core Components
NotepadPPController - Windows API integration layer
FastMCP Server - MCP protocol implementation
Tool Decorators - Automatic tool registration
Structured Logging - Professional error handling
🔧 Integration Flow
MCP Client (Claude Desktop) → FastMCP Server
Server → NotepadPPController → Windows API
Windows API → Notepad++ Application → User Interface
📁 File Structure
🐛 Troubleshooting
❌ Common Issues
"Notepad++ not found"
"Windows API not available"
"Server not connecting"
"Tools not appearing in Claude"
Restart Claude Desktop after configuration
Check logs in Claude developer console
Verify Notepad++ is running on the system
Run demonstration script to test functionality
🆘 Getting Help
Run Diagnostics
Debug Mode
Manual Testing
🤝 Contributing
📝 Development Setup
🐛 Reporting Issues
Run demonstration script first:
python demonstration_test.py
Check existing issues on GitHub
Include error logs and system information
Test with different Notepad++ versions if possible
💡 Feature Requests
Check existing tools in the tools overview
Consider Windows API limitations
Test with real Notepad++ workflows
Follow FastMCP 2.12 patterns
📜 Changelog
v1.0.0 - Current Release
✅ 15 comprehensive tools for Notepad++ automation
✅ Real Windows API integration with pywin32
✅ Advanced tab and session management
✅ 18 comprehensive tests with full coverage
✅ DXT packaging for easy installation
✅ Production-ready error handling and logging
Planned Features
Multi-instance support for multiple Notepad++ windows
Plugin integration for extended functionality
Configuration files for custom settings
Batch operations for multiple file processing
📄 License
MIT - see LICENSE
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables comprehensive automation and control of Notepad++ on Windows, including file operations, text editing, tab management, and session management through 15 integrated tools. Supports advanced workspace management with the ability to save and restore complete editing sessions.