tusky-mcp-server
Tusky MCP Server acts as a bridge integrating Tusky storage with AI assistants like Claude, using the Model Context Protocol to manage files, folders, and user profiles securely. It ensures seamless development and deployment with key features like file uploads, search functionality, and secure API authentication.
Tusky MCP Server 🦣
A Model Context Protocol (MCP) server for integrating Tusky with Claude and other MCP-compatible AI systems.
What is Tusky MCP Server?
The Tusky MCP Server provides a bridge between Tusky storage/Mastodon integration and AI assistants using the Model Context Protocol (MCP). This allows Claude and other compatible AIs to securely access and manipulate data in Tusky through a standardized interface.
Features
- Authentication with the Tusky API
- File and folder management in Tusky vaults
- User profile and storage management
- Search functionality across vaults, folders, and files
- File uploads using TUS protocol for reliable, resumable file transfers
- Seamless integration with Claude Desktop and other MCP clients
Prerequisites 🛠
Before you begin, ensure you have:
- A Tusky API key (obtained from your Tusky account)
- Node.js (v20 or higher)
- An MCP client like Claude Desktop or Cursor
Installation 🚀
- Clone this repository:
git clone https://github.com/superposition/tusky-mcp-server.git
cd tusky-mcp-server
- Install dependencies:
npm install
- Create a
.env
file (copying from.env.example
):
cp .env.example .env
- Edit the
.env
file with your Tusky API credentials:
TUSKY_API_KEY=your_api_key_here
TUSKY_API_URL=https://api.tusky.io/v1
- Build the project:
npm run build
Running the Server 🖥️
Start the server with:
npm start
For development with auto-reload:
npm run watch
Feature Documentation
The Tusky MCP Server provides several tools that can be used through compatible MCP clients:
- Authentication: Connect to your Tusky account
- Vault Management: Create, list, and modify storage vaults
- Folder Management: Organize your content with folders
- File Management: Upload, download, and manage files
- Search: Find content across all your vaults and folders.
- File Uploads: Upload files using the TUS protocol for reliable and resumable file transfers.
- User Profile: Manage your Tusky profile and settings
Integrating with MCP Clients
Configuring Claude Desktop
For macOS:
# Create the config file if it doesn't exist
touch "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
# Open the config file in TextEdit
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
For Windows:
code %APPDATA%\Claude\claude_desktop_config.json
Add your server configuration:
{
"mcpServers": {
"tusky-mcp": {
"command": "node",
"args": ["/path/to/your/build/index.js"],
"env": {
"TUSKY_API_KEY": "your-api-key-here",
"TUSKY_API_URL": "https://api.tusky.io/v1"
}
}
}
}
Configuring Cursor
- Open Cursor Settings
- Navigate to Features > MCP Servers
- Click on the "+ Add New MCP Server" button
- Fill out the following information:
- Name: Enter a nickname for the server (e.g., "tusky-mcp")
- Type: Select "command" as the type
- Command: Enter the command to run the server:
env TUSKY_API_KEY=your-api-key TUSKY_API_URL=https://api.tusky.io/v1 node /path/to/your/build/index.js
Development Roadmap
The development is organized in tiers:
- Tier 1 - Foundation: Basic MCP server structure
- Tier 2 - Authentication: Auth challenge and API key management
- Tier 3 - Core Listing/Retrieval: Vault and folder listing
- Tier 4 - Core Creation/Modification: Create and modify vaults, folders, files
- Tier 5 - Advanced Features: File uploads, vault sharing, search functionality
- Tier 6 - Infrastructure: Error handling, response formatting, tests
See the Issues tab for detailed task breakdown.
Contributing
We welcome contributions to the Tusky MCP Server! Please see our for more information.
License
This project is licensed under the MIT License - see the file for details.
Acknowledgments 🙏
- Model Context Protocol for the MCP specification
- Anthropic for Claude Desktop
- The Tusky team for the wonderful storage and Mastodon integration platform