@upstash/mcp-server 0.1.0 → 0.2.0-canary-4

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # Upstash MCP Server
2
2
 
3
+ [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=upstash-mcp&config=eyJjb21tYW5kIjoibm9kZSIsImFyZ3MiOlsiL3BhdGgvdG8vdXBzdGFzaC1tY3AvaW5kZXguanMiLCItLWVtYWlsIiwiWU9VUl9FTUFJTF9IRVJFIiwiLS1hcGkta2V5IiwiWU9VUl9BUElfS0VZX0hFUkUiXX0%3D) [<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)
4
+
3
5
  [![smithery badge](https://smithery.ai/badge/@upstash/mcp-server)](https://smithery.ai/server/@upstash/mcp-server)
4
6
 
5
7
  Model Context Protocol (MCP) is a [new, standardized protocol](https://modelcontextprotocol.io/introduction) 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](https://upstash.com/docs/devops/developer-api).
@@ -14,83 +16,123 @@ This allows you to use any MCP Client to interact with your Upstash account usin
14
16
 
15
17
  # Usage
16
18
 
17
- ## Requirements
19
+ ## Quick Setup
18
20
 
19
- - Node.js >= v18.0.0
20
- - [Upstash API key](https://upstash.com/docs/devops/developer-api) - You can create one from [here](https://console.upstash.com/account/api).
21
+ First, get your Upstash credentials:
21
22
 
22
- ## How to use locally
23
+ - **Email**: Your Upstash account email
24
+ - **API Key**: Get it from [Upstash Console → Account → API Keys](https://console.upstash.com/account/api)
23
25
 
24
- ### Installing for Claude Desktop
26
+ Add this to your MCP client configuration:
25
27
 
26
- To install Upstash MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@upstash/mcp-server) run the following command:
28
+ ```json
29
+ {
30
+ "mcpServers": {
31
+ "upstash": {
32
+ "command": "npx",
33
+ "args": [
34
+ "-y",
35
+ "@upstash/mcp-server@latest",
36
+ "--email",
37
+ "YOUR_EMAIL",
38
+ "--api-key",
39
+ "YOUR_API_KEY"
40
+ ]
41
+ }
42
+ }
43
+ }
44
+ ```
27
45
 
28
- ```bash
29
- npx -y @smithery/cli@latest install @upstash/mcp-server --client claude
46
+ **HTTP Transport (for web applications):**
47
+
48
+ ```json
49
+ {
50
+ "mcpServers": {
51
+ "upstash": {
52
+ "command": "npx",
53
+ "args": [
54
+ "-y",
55
+ "@upstash/mcp-server@latest",
56
+ "--transport",
57
+ "http",
58
+ "--port",
59
+ "3000",
60
+ "--email",
61
+ "YOUR_EMAIL",
62
+ "--api-key",
63
+ "YOUR_API_KEY"
64
+ ]
65
+ }
66
+ }
67
+ }
30
68
  ```
31
69
 
70
+ The server will be available at `http://localhost:3000/mcp` with SSE endpoint at `/sse`.
71
+
32
72
  <details>
33
- <summary>Install without Smithery</summary>
34
-
35
- ```bash
36
- npx @upstash/mcp-server init <UPSTASH_EMAIL> <UPSTASH_API_KEY>
37
- ```
73
+ <summary><strong>Docker Setup</strong></summary>
38
74
 
39
- This will edit your MCP config file and add an entry for Upstash.
75
+ 1. **Create a Dockerfile:**
40
76
 
41
- </details>
77
+ <summary>Click to see Dockerfile content</summary>
42
78
 
43
- ### Installing for Cursor
79
+ ```Dockerfile
80
+ FROM node:18-alpine
44
81
 
45
- To install Upstash MCP Server for Cursor automatically via [Smithery](https://smithery.ai/server/@upstash/mcp-server) run the following command:
82
+ WORKDIR /app
46
83
 
47
- ```bash
48
- npx -y @smithery/cli@latest install @upstash/mcp-server --client cursor
49
- ```
84
+ # Install the latest version globally
85
+ RUN npm install -g @upstash/mcp-server
50
86
 
51
- <details>
52
- <summary>Install without Smithery</summary>
53
-
54
- Add the following command to the MCP config in Cursor. For more info, check the [Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers).
87
+ # Expose default port if needed (optional, depends on MCP client interaction)
88
+ # EXPOSE 3000
55
89
 
56
- ```bash
57
- npx -y @upstash/mcp-server run <UPSTASH_EMAIL> <UPSTASH_API_KEY>
58
- ```
90
+ # Default command to run the server
91
+ CMD ["upstash-mcp-server"]
92
+ ```
59
93
 
60
- </details>
94
+ </details>
61
95
 
62
- ### Installing for Windsurf
96
+ 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`:
63
97
 
64
- To install Upstash MCP Server for Windsurf automatically via [Smithery](https://smithery.ai/server/@upstash/mcp-server) run the following command:
98
+ ```bash
99
+ docker build -t upstash-mcp .
100
+ ```
65
101
 
66
- ```bash
67
- npx -y @smithery/cli@latest install @upstash/mcp-server --client windsurf
68
- ```
102
+ 2. **Configure Your MCP Client:**
69
103
 
70
- <details>
71
- <summary>Install without Smithery</summary>
72
-
73
- Add the following command to the MCP config in Windsurf. For more info, check out the [Windsurf MCP docs](https://docs.windsurf.com/windsurf/mcp#mcp-config-json).
104
+ Update your MCP client's configuration to use the Docker command.
74
105
 
75
- ```bash
76
- npx -y @upstash/mcp-server run <UPSTASH_EMAIL> <UPSTASH_API_KEY>
77
- ```
106
+ _Example for a claude_desktop_config.json:_
78
107
 
79
- </details>
108
+ ```json
109
+ {
110
+ "mcpServers": {
111
+ "upstash": {
112
+ "command": "docker",
113
+ "args": [
114
+ "run",
115
+ "-i",
116
+ "--rm",
117
+ "-e",
118
+ "UPSTASH_EMAIL=YOUR_EMAIL",
119
+ "-e",
120
+ "UPSTASH_API_KEY=YOUR_API_KEY",
121
+ "upstash-mcp"
122
+ ]
123
+ }
124
+ }
125
+ }
126
+ ```
80
127
 
81
- ### Running with Docker
128
+ _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._
82
129
 
83
- You can also use the provided Docker image to run the server.
130
+ </details>
84
131
 
85
- ```bash
86
- docker build -t upstash-mcp .
132
+ ## Requirements
87
133
 
88
- # Run the stdio server, add this command to you MCP config
89
- docker run --rm -i \
90
- -e UPSTASH_EMAIL=<UPSTASH_EMAIL> \
91
- -e UPSTASH_API_KEY=<UPSTASH_API_KEY> \
92
- upstash-mcp
93
- ```
134
+ - Node.js >= v18.0.0
135
+ - [Upstash API key](https://upstash.com/docs/devops/developer-api) - You can create one from [here](https://console.upstash.com/account/api).
94
136
 
95
137
  ### Troubleshooting
96
138
 
@@ -146,23 +188,26 @@ UPSTASH_EMAIL=<UPSTASH_EMAIL>
146
188
  UPSTASH_API_KEY=<UPSTASH_API_KEY>
147
189
  ```
148
190
 
149
- This will be used for setting the Claude config and running mcp inspector.
191
+ This will be used for setting the Claude config.
150
192
 
151
193
  ### Testing with Claude Desktop
152
194
 
153
- To install the Claude Desktop config for local development, run the following command:
154
-
155
- ```bash
156
- pnpm run setup
157
- ```
158
-
159
- This will add an `upstash` entry to your MCP config file that points to the local build of the package.
195
+ To install the Claude Desktop config for local development, add the following to your Claude Desktop MCP config:
160
196
 
161
197
  ```json
162
198
  {
163
- "upstash": {
164
- "command": "node",
165
- "args": ["<path-to-repo>/dist/index.js", "run", "<UPSTASH_EMAIL>", "<UPSTASH_API_KEY>"]
199
+ "mcpServers": {
200
+ "upstash": {
201
+ "command": "node",
202
+ "args": [
203
+ "<path-to-repo>/dist/index.js",
204
+ "run",
205
+ "--email",
206
+ "<UPSTASH_EMAIL>",
207
+ "--api-key",
208
+ "<UPSTASH_API_KEY>"
209
+ ]
210
+ }
166
211
  }
167
212
  }
168
213
  ```
@@ -176,11 +221,3 @@ To view the logs from the MCP Server in real time, run the following command:
176
221
  ```bash
177
222
  pnpm run logs
178
223
  ```
179
-
180
- ### Testing with MCP Inspector
181
-
182
- You can also use the MCP Inspector to test the tools.
183
-
184
- ```bash
185
- pnpm run inspector
186
- ```
package/dist/index.d.ts CHANGED
@@ -1 +1,4 @@
1
1
  #!/usr/bin/env node
2
+ declare const DEBUG: boolean;
3
+
4
+ export { DEBUG };