@upstash/mcp-server 0.2.2-rc.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -136
- package/dist/index.js +312 -203
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
# Upstash MCP
|
|
2
|
-
|
|
3
|
-
[](https://cursor.com/en/install-mcp?name=upstash&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1cHN0YXNoL21jcC1zZXJ2ZXJAbGF0ZXN0IiwiLS1lbWFpbCIsIllPVVJfRU1BSUwiLCItLWFwaS1rZXkiLCJZT1VSX0FQSV9LRVkiXX0=%3D)
|
|
1
|
+
# Upstash MCP
|
|
4
2
|
|
|
5
3
|
[](https://cursor.com/en/install-mcp?name=upstash&config=eyJjb21tYW5kIjoibnB4IC15IEB1cHN0YXNoL21jcC1zZXJ2ZXJAbGF0ZXN0IC0tZW1haWwgWU9VUl9FTUFJTCAtLWFwaS1rZXkgWU9VUl9BUElfS0VZIn0%3D)
|
|
4
|
+
|
|
6
5
|
[<img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/Install%20in%20VS%20Code-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white">](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22upstash-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40upstash%2Fmcp-server%40latest%22%2C%22--email%22%2C%22YOUR_EMAIL%22%2C%22--api-key%22%2C%22YOUR_API_KEY%22%5D%7D)
|
|
7
6
|
|
|
8
7
|
[](https://smithery.ai/server/@upstash/mcp-server)
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
The Upstash MCP gives your agent the ability to interact with your Upstash account, such as:
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
### Redis
|
|
13
12
|
|
|
14
|
-
- "Create a new Redis
|
|
15
|
-
- "List my databases"
|
|
16
|
-
- "
|
|
17
|
-
- "Create a backup"
|
|
13
|
+
- "Create a new Redis in us-east-1"
|
|
14
|
+
- "List my databases that have high memory usage"
|
|
15
|
+
- "Give me the schema of how users are stored in redis"
|
|
16
|
+
- "Create a backup and clear db"
|
|
18
17
|
- "Give me the spikes in throughput during the last 7 days"
|
|
19
18
|
|
|
19
|
+
### QStash & Workflow
|
|
20
|
+
|
|
21
|
+
- "Check the logs and figure out what is wrong"
|
|
22
|
+
- "Find me failed workflows of user @ysfk_0x"
|
|
23
|
+
- "Restart the failed workflow run started in last 2 hours"
|
|
24
|
+
- "Check DLQ and give me a summary"
|
|
25
|
+
|
|
20
26
|
# Usage
|
|
21
27
|
|
|
22
28
|
## Quick Setup
|
|
@@ -46,7 +52,13 @@ Add this to your MCP client configuration:
|
|
|
46
52
|
}
|
|
47
53
|
```
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
### Claude Code
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
claude mcp add --transport stdio upstash -- npx -y @upstash/mcp-server@latest --email YOUR_EMAIL --api-key YOUR_API_KEY
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Streamable HTTP Transport (for web applications)
|
|
50
62
|
|
|
51
63
|
Start your MCP server with the `http` transport:
|
|
52
64
|
|
|
@@ -66,114 +78,21 @@ And configure your MCP client to use the HTTP transport:
|
|
|
66
78
|
}
|
|
67
79
|
```
|
|
68
80
|
|
|
69
|
-
|
|
70
|
-
<summary><strong>Docker Setup</strong></summary>
|
|
71
|
-
|
|
72
|
-
1. **Create a Dockerfile:**
|
|
73
|
-
|
|
74
|
-
<summary>Click to see Dockerfile content</summary>
|
|
75
|
-
|
|
76
|
-
```Dockerfile
|
|
77
|
-
FROM node:18-alpine
|
|
78
|
-
|
|
79
|
-
WORKDIR /app
|
|
80
|
-
|
|
81
|
-
# Install the latest version globally
|
|
82
|
-
RUN npm install -g @upstash/mcp-server
|
|
83
|
-
|
|
84
|
-
# Expose default port if needed (optional, depends on MCP client interaction)
|
|
85
|
-
# EXPOSE 3000
|
|
86
|
-
|
|
87
|
-
# Default command to run the server
|
|
88
|
-
CMD ["upstash-mcp-server"]
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
</details>
|
|
92
|
-
|
|
93
|
-
Then, build the image using a tag (e.g., `upstash-mcp`). **Make sure Docker Desktop (or the Docker daemon) is running.** Run the following command in the same directory where you saved the `Dockerfile`:
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
docker build -t upstash-mcp .
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
2. **Configure Your MCP Client:**
|
|
100
|
-
|
|
101
|
-
Update your MCP client's configuration to use the Docker command.
|
|
102
|
-
|
|
103
|
-
_Example for a claude_desktop_config.json:_
|
|
104
|
-
|
|
105
|
-
```json
|
|
106
|
-
{
|
|
107
|
-
"mcpServers": {
|
|
108
|
-
"upstash": {
|
|
109
|
-
"command": "docker",
|
|
110
|
-
"args": [
|
|
111
|
-
"run",
|
|
112
|
-
"-i",
|
|
113
|
-
"--rm",
|
|
114
|
-
"-e",
|
|
115
|
-
"UPSTASH_EMAIL=YOUR_EMAIL",
|
|
116
|
-
"-e",
|
|
117
|
-
"UPSTASH_API_KEY=YOUR_API_KEY",
|
|
118
|
-
"upstash-mcp"
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
_Note: This is an example configuration. Please refer to the specific examples for your MCP client (like Cursor, VS Code, etc.) earlier in this README to adapt the structure (e.g., `mcpServers` vs `servers`). Also, ensure the image name in `args` matches the tag used during the `docker build` command._
|
|
126
|
-
|
|
127
|
-
</details>
|
|
128
|
-
|
|
129
|
-
## Requirements
|
|
81
|
+
## Telemetry
|
|
130
82
|
|
|
131
|
-
|
|
132
|
-
- [Upstash API key](https://upstash.com/docs/devops/developer-api) - You can create one from [here](https://console.upstash.com/account/api).
|
|
83
|
+
The server sends anonymous runtime/platform info to Upstash with each request. To opt out, add `--disable-telemetry` to your args.
|
|
133
84
|
|
|
134
|
-
|
|
85
|
+
## Troubleshooting
|
|
135
86
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
Your mcp client might have trouble finding the right binaries because of the differences between your shell and system `PATH`.
|
|
139
|
-
|
|
140
|
-
To fix this, you can get the full path of the binaries by running `which npx` or `which docker` in your shell, and replace the `npx` or `docker` command in the MCP config with the full binary path.
|
|
141
|
-
|
|
142
|
-
#### Node Version Manager
|
|
143
|
-
|
|
144
|
-
If you are using a node version manager like nvm or fnm, please check [this issue](https://github.com/modelcontextprotocol/servers/issues/64#issuecomment-2530337743). You should change the `node` command in the MCP config to the absolute path of the node binary.
|
|
145
|
-
|
|
146
|
-
#### Additional Troubleshooting
|
|
147
|
-
|
|
148
|
-
See the [troubleshooting guide](https://modelcontextprotocol.io/quickstart#troubleshooting) in the MCP documentation. You can also reach out to us at [Discord](https://discord.com/invite/w9SenAtbme).
|
|
149
|
-
|
|
150
|
-
## Tools
|
|
151
|
-
|
|
152
|
-
### Redis
|
|
153
|
-
|
|
154
|
-
- `redis_database_create_backup`
|
|
155
|
-
- `redis_database_create_new`
|
|
156
|
-
- `redis_database_delete`
|
|
157
|
-
- `redis_database_delete_backup`
|
|
158
|
-
- `redis_database_get_details`
|
|
159
|
-
- `redis_database_list_backups`
|
|
160
|
-
- `redis_database_list_databases`
|
|
161
|
-
- `redis_database_reset_password`
|
|
162
|
-
- `redis_database_restore_backup`
|
|
163
|
-
- `redis_database_run_multiple_redis_commands`
|
|
164
|
-
- `redis_database_run_single_redis_command`
|
|
165
|
-
- `redis_database_set_daily_backup`
|
|
166
|
-
- `redis_database_update_regions`
|
|
167
|
-
- `redis_database_get_usage_last_5_days`
|
|
168
|
-
- `redis_database_get_stats`
|
|
87
|
+
See the [troubleshooting guide](https://modelcontextprotocol.io/quickstart#troubleshooting) in the official MCP documentation. You can also reach out to us at [Discord](https://discord.com/invite/w9SenAtbme) for support.
|
|
169
88
|
|
|
170
89
|
## Development
|
|
171
90
|
|
|
172
91
|
Clone the project and run:
|
|
173
92
|
|
|
174
93
|
```bash
|
|
175
|
-
|
|
176
|
-
|
|
94
|
+
bun i
|
|
95
|
+
bun run watch
|
|
177
96
|
```
|
|
178
97
|
|
|
179
98
|
This will continuously build the project and watch for changes.
|
|
@@ -185,36 +104,14 @@ UPSTASH_EMAIL=<UPSTASH_EMAIL>
|
|
|
185
104
|
UPSTASH_API_KEY=<UPSTASH_API_KEY>
|
|
186
105
|
```
|
|
187
106
|
|
|
188
|
-
|
|
107
|
+
To install the local MCP Server to Claude Code, run:
|
|
189
108
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
To install the Claude Desktop config for local development, add the following to your Claude Desktop MCP config:
|
|
193
|
-
|
|
194
|
-
```json
|
|
195
|
-
{
|
|
196
|
-
"mcpServers": {
|
|
197
|
-
"upstash": {
|
|
198
|
-
"command": "node",
|
|
199
|
-
"args": [
|
|
200
|
-
"<path-to-repo>/dist/index.js",
|
|
201
|
-
"run",
|
|
202
|
-
"--email",
|
|
203
|
-
"<UPSTASH_EMAIL>",
|
|
204
|
-
"--api-key",
|
|
205
|
-
"<UPSTASH_API_KEY>"
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
109
|
+
```bash
|
|
110
|
+
claude mcp add --transport stdio upstash -- bun --watch dist/index.js --debug
|
|
210
111
|
```
|
|
211
112
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
You can now use Claude Desktop to run Upstash commands.
|
|
215
|
-
|
|
216
|
-
To view the logs from the MCP Server in real time, run the following command:
|
|
113
|
+
To view the logs from the MCP Server in real time, run:
|
|
217
114
|
|
|
218
115
|
```bash
|
|
219
|
-
|
|
116
|
+
bun run logs
|
|
220
117
|
```
|