Upstash MCP Server
Model Context Protocol (MCP) is a new, standardized protocolβ for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Upstash Developer APIβsβ.
This lets you use Claude Desktop, or any MCP Client, to use natural language to accomplish things on your Upstash account, e.g.:
- βCreate a new Redis database in us-east-1β
- βList all databasesβ
- βSee keys starting with βuser:β in users-dbβ
- βCreate a backupβ
- βGive me the spikes in throughput for the last 7 daysβ
Usage
Requirements
- Node.js >= v18.0.0
- Claude Desktop
- Upstash API keyβ - You can create one from hereβ.
How to use locally
Installing via npx
- Run
npx @upstash/mcp-server init <UPSTASH_EMAIL> <UPSTASH_API_KEY> - Restart Claude Desktop
- You should now be able to use Upstash commands in Claude Desktop
See the troubleshooting guideβ in the MCP documentation. You can also reach out to us at Discordβ.
NOTE: If you are using a node version manager like nvm or fnm, please check this issueβ. You should change the
nodecommand in the MCP config to the absolute path of the node binary.
Installing via Smithery
To install Upstash for Claude Desktop automatically via Smitheryβ:
npx -y @smithery/cli install @upstash/mcp-server --client claudeTools
Redis
redis_database_create_backupredis_database_create_newredis_database_deleteredis_database_delete_backupredis_database_get_detailsredis_database_list_backupsredis_database_list_databasesredis_database_reset_passwordredis_database_restore_backupredis_database_run_multiple_redis_commandsredis_database_run_single_redis_commandredis_database_set_daily_backupredis_database_update_regionsredis_database_get_usage_last_5_daysredis_database_get_stats
Development
Clone the project and run:
bun install
npm run watchThis will continuously build the project and watch for changes.
For testing, you can create a .env file in the same directory as the project with the following content:
UPSTASH_EMAIL=<UPSTASH_EMAIL>
UPSTASH_API_KEY=<UPSTASH_API_KEY>This will be used for setting the Claude config and running mcp inspector.
Testing with Claude Desktop
To install the Claude Desktop config for local development, run the following command:
npm run setupThis will add an upstash entry to your MCP config file that points to the local build of the package.
{
"upstash": {
"command": "node",
"args": ["<path-to-repo>/dist/index.js", "run", "<UPSTASH_EMAIL>", "<UPSTASH_API_KEY>"]
}
}NOTE: The same issue with node version manager applies here. Please look at the note in the usage section if you are using a node version manager.
You can now use Claude Desktop to run Upstash commands.
To view the logs from the MCP Server in real time, run the following command:
npm run logsTesting with MCP Inspector
You can also use the MCP Inspector to test the tools.
npm run inspector