Sparkle MCP Server
Allows Swift applications to communicate with the Sparkle MCP server for file operations and clipboard history via MCP protocol.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Sparkle MCP Server
A powerful Model Context Protocol (MCP) server that provides secure file access and clipboard history management for Claude AI and other MCP-compatible clients.
Features
Secure File Access: Restricted to
~/Sparklefolder for safe AI file operationsAdvanced File Search: Pattern matching, content search, and relevance scoring
Clipboard History: Search and query clipboard history from
~/Sparkle/Pasteboard/Binary File Support: Handles PDFs, images, and other binary files (up to 100MB)
Smart File Indexing: Automatic file indexing with 50KB content sampling for search
Multiple File Operations: Read, write, move, create directories, and get file info
Related MCP server: ai-distiller-mcp
Installation
Option 1: NPM Install (Recommended)
npm install -g @every-env/sparkle-mcp-serverOption 2: From Source
git clone https://github.com/EveryInc/sparkle-mcp-server.git
cd sparkle-mcp-server
npm install
npm run build
npm linkQuick Setup
Option 1: Zero Install (Recommended) π
Just add this to your Claude Desktop config (~/.config/claude/config.json):
{
"mcpServers": {
"sparkle": {
"command": "npx",
"args": ["-y", "@every-env/sparkle-mcp-server"]
}
}
}That's it! Restart Claude Desktop and you're done. No installation needed!
Option 2: Traditional Install
If you prefer a local installation:
npm install -g @every-env/sparkle-mcp-serverThen use this config:
{
"mcpServers": {
"sparkle": {
"command": "sparkle-mcp"
}
}
}Available Tools
File Operations
list_directory- List files and directoriessearch_files- Search with glob patterns (*,*.txt, etc.)get_relevant_files- AI-powered file search and rankingread_file- Read file contents (text and binary)write_file- Create or overwrite filesmove_file- Move or rename filescreate_directory- Create directoriesget_file_info- Get file metadata
Clipboard History
search_clipboard- Search clipboard history with filtersget_clipboard_by_date- Get clipboard entries for a specific dateget_recent_clipboard- Get recent clipboard entriesclipboard_stats- Usage statistics and analytics
System
health_check- Server status and diagnostics
Usage Examples
Basic File Operations
// List all files in Sparkle folder
list_directory({ path: "" })
// Search for all text files
search_files({ path: "", pattern: "*.txt" })
// Find relevant files with AI
get_relevant_files({ query: "my tax documents", maxFiles: 5 })Clipboard History
// Search clipboard for specific text
search_clipboard({ query: "password", limit: 20 })
// Get today's clipboard
get_clipboard_by_date({ date: "2025-08-05" })
// Recent clipboard history
get_recent_clipboard({ days: 7, limit: 50 })Directory Structure
~/Sparkle/ # Main Sparkle directory
βββ README.txt # Welcome file (auto-created)
βββ Pasteboard/ # Clipboard history
β βββ 2025-08-05/ # Daily clipboard folders
β β βββ clipboard.json # Clipboard entries
β β βββ ...
βββ Documents/ # Your documents
βββ Images/ # Your images
βββ ... # Any other files/foldersClipboard History Format
The server supports multiple clipboard storage formats:
JSON Format (clipboard.json)
[
{
"timestamp": "2025-08-05T10:30:00Z",
"content": "Hello world",
"type": "text",
"metadata": {
"app": "Safari",
"size": 11
}
}
]Text Format (clipboard.txt)
2025-08-05 10:30:00 | text | Hello world
2025-08-05 10:31:15 | url | https://example.comSwift Integration
If you have a Swift Sparkle app, here's how to integrate:
1. MCP Server Communication
import Foundation
class SparkleManager {
private let serverProcess: Process
init() {
serverProcess = Process()
serverProcess.executableURL = URL(fileURLWithPath: "/usr/local/bin/sparkle-mcp")
// Configure stdio pipes for MCP communication
}
func sendMCPRequest(_ request: MCPRequest) async throws -> MCPResponse {
// Implement MCP protocol communication
}
}2. File Operations
// Search files
let searchResult = try await sparkleManager.sendMCPRequest(
MCPRequest(method: "tools/call", params: [
"name": "search_files",
"arguments": ["path": "", "pattern": "*.pdf"]
])
)
// Read file
let fileContent = try await sparkleManager.sendMCPRequest(
MCPRequest(method: "tools/call", params: [
"name": "read_file",
"arguments": ["path": "document.txt"]
])
)3. Clipboard Integration
// Save clipboard to Pasteboard folder
func saveClipboard() {
let pasteboard = NSPasteboard.general
if let string = pasteboard.string(forType: .string) {
let clipboardEntry = ClipboardEntry(
timestamp: Date(),
content: string,
type: "text"
)
saveToSparkleFolder(clipboardEntry)
}
}
// Query clipboard history via MCP
let recentClipboard = try await sparkleManager.sendMCPRequest(
MCPRequest(method: "tools/call", params: [
"name": "get_recent_clipboard",
"arguments": ["days": 7, "limit": 50]
])
)Configuration
The server uses ~/Sparkle/.mcp-config.json for configuration:
{
"version": "1.0.0",
"created": "2025-08-05T10:00:00Z",
"settings": {
"sparkleFolder": "~/Sparkle",
"maxFileSize": 104857600,
"allowedExtensions": ["*"],
"autoIndex": true,
"watcherEnabled": true
}
}Security Features
Sandboxed Access: Only
~/Sparklefolder is accessibleFile Size Limits: 100MB maximum file size
Path Validation: Prevents directory traversal attacks
Rate Limiting: 100 requests per minute
Safe File Types: Blocks executable files by default
Development
# Clone and setup
git clone https://github.com/EveryInc/sparkle-mcp-server.git
cd sparkle-mcp-server
npm install
# Development mode
npm run dev
# Build
npm run build
# Test
npm testPublishing Steps (For Maintainers)
Update version:
npm version patch|minor|majorBuild:
npm run buildPublish:
npm publish --access public
Troubleshooting
Server Won't Start
# Check if installed correctly
which sparkle-mcp
# Test server manually
sparkle-mcp --help
# Check logs
tail -f ~/.config/claude/logs/sparkle.logFile Access Issues
Ensure
~/Sparklefolder exists and is writableCheck file permissions:
chmod 755 ~/SparkleVerify Claude Desktop has proper permissions
Clipboard History Not Working
Create
~/Sparkle/Pasteboard/directoryEnsure your clipboard app saves to the correct format
Check folder permissions
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
License
MIT License - see LICENSE file for details.
Support
Issues: https://github.com/EveryInc/sparkle-mcp-server/issues
Documentation: https://github.com/EveryInc/sparkle-mcp-server/wiki
Discussions: https://github.com/EveryInc/sparkle-mcp-server/discussions
Built with β€οΈ by Every Inc
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Let ChatGPT and Claude read and edit files, search and run commands on your own computer.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA comprehensive MCP (Model Context Protocol) server for file system operations, providing Claude and other AI assistants with access to local files and directories.2MIT
- FlicenseNot gradedqualityDmaintenanceProvides filesystem access to Claude via the MCP protocol, enabling local file operations through natural language.-
- AlicenseNot gradedqualityDmaintenanceEnables sandboxed file operations via MCP tools, resources, and prompts, with a Claude CLI client and Groq-powered web UI for file CRUD, search, code review, and documentation generation.MIT
- AlicenseNot gradedqualityCmaintenanceA sandboxed file-access MCP server for Claude Desktop, enabling safe read/write access to selected directories with atomic verified writes, undo, and read-only git operations.1MIT