Supports connection to MySQL databases, enabling query execution and data retrieval capabilities
Enables connection to PostgreSQL databases, providing tools for executing queries and retrieving data
Provides direct connection to SQLite databases, allowing query execution, schema exploration, and data analysis
Paprika MCP Server
A Model Context Protocol (MCP) desktop extension for connecting Claude to your custom SQL database. This server allows Claude to query and interact with your database in real-time during conversations.
Overview
MCP desktop extensions enable you to create custom tools that Claude can use directly through the desktop app. This implementation provides a SQL database interface that allows Claude to execute queries, explore schema, and analyze your data.
Project Setup
1. Initialize the Project
2. Install Dependencies
3. Create the MCP Server
Create a file called server.js
:
4. Configure Package.json
Update your package.json
:
Installation
1. Install the Package Globally
2. Configure Claude Desktop
Create or edit the Claude desktop configuration file:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json
3. Restart Claude Desktop
After making the configuration changes, restart the Claude Desktop application.
Database-Specific Configurations
SQLite (Default)
PostgreSQL
MySQL
Usage Examples
Once configured, you can ask Claude to interact with your database:
- "Show me all tables in the database"
- "Query the users table for recent entries"
- "What's the schema of the products table?"
- "Find all records where status is 'active'"
- "Get a count of records by category"
Security Considerations
Query Restrictions
The server includes basic protection against destructive operations:
DROP
statements are blockedDELETE
statements are blockedTRUNCATE
statements are blocked
Additional Security Measures
- Consider implementing read-only database access
- Add input validation and sanitization
- Implement query result size limits
- Add authentication if needed
- Use environment variables for sensitive configuration
Example Environment Configuration
Advanced Features
1. Query Result Formatting
Add methods to format results as tables or charts:
2. Query History and Caching
Implement query caching for performance:
3. Multiple Database Support
Extend to support multiple database connections:
4. Custom Business Logic
Add domain-specific functions:
Troubleshooting
Common Issues
- Server not appearing in Claude
- Check that the configuration file path is correct
- Verify the server is installed globally
- Restart Claude Desktop
- Database connection errors
- Verify database file path is correct
- Check database permissions
- Ensure database driver is installed
- Query execution errors
- Verify SQL syntax
- Check table and column names
- Review error messages in Claude
Debugging
Enable verbose logging by adding debug statements:
Development
Testing the Server
Making Changes
- Edit
server.js
- Reinstall globally:
npm install -g .
- Restart Claude Desktop
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
License
MIT License - see LICENSE file for details.
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.
A Model Context Protocol desktop extension that allows Claude to query and interact with custom SQL databases in real-time during conversations.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables Claude to execute SQL queries on Snowflake databases with automatic connection lifecycle management.Last updated -42PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.Last updated -2TypeScript
- -securityFlicense-qualityA Model Context Protocol server that allows Large Language Models like Claude to execute SQL queries, explore database schemas, and maintain persistent connections to SQL Server databases.Last updated -TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Claude to access and interact with Oracle databases through natural language queries.Last updated -3PythonMIT License