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

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,117 @@ 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:
22
+
23
+ - **Email**: Your Upstash account email
24
+ - **API Key**: Get it from [Upstash Console → Account → API Keys](https://console.upstash.com/account/api)
25
+
26
+ Add this to your MCP client configuration:
21
27
 
22
- ## How to use locally
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
+ ```
23
45
 
24
- ### Installing for Claude Desktop
46
+ **Streamable HTTP Transport (for web applications):**
25
47
 
26
- To install Upstash MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@upstash/mcp-server) run the following command:
48
+ Start your MCP server with the `http` transport:
27
49
 
28
50
  ```bash
29
- npx -y @smithery/cli@latest install @upstash/mcp-server --client claude
51
+ npx @upstash/mcp-server@latest --transport http --port 3000 --email YOUR_EMAIL --api-key YOUR_API_KEY
52
+ ```
53
+
54
+ And configure your MCP client to use the HTTP transport:
55
+
56
+ ```json
57
+ {
58
+ "mcpServers": {
59
+ "upstash": {
60
+ "url": "http://localhost:3000/mcp"
61
+ }
62
+ }
63
+ }
30
64
  ```
31
65
 
32
66
  <details>
33
- <summary>Install without Smithery</summary>
34
-
35
- ```bash
36
- npx @upstash/mcp-server init <UPSTASH_EMAIL> <UPSTASH_API_KEY>
37
- ```
67
+ <summary><strong>Docker Setup</strong></summary>
38
68
 
39
- This will edit your MCP config file and add an entry for Upstash.
69
+ 1. **Create a Dockerfile:**
40
70
 
41
- </details>
71
+ <summary>Click to see Dockerfile content</summary>
42
72
 
43
- ### Installing for Cursor
73
+ ```Dockerfile
74
+ FROM node:18-alpine
44
75
 
45
- To install Upstash MCP Server for Cursor automatically via [Smithery](https://smithery.ai/server/@upstash/mcp-server) run the following command:
76
+ WORKDIR /app
46
77
 
47
- ```bash
48
- npx -y @smithery/cli@latest install @upstash/mcp-server --client cursor
49
- ```
78
+ # Install the latest version globally
79
+ RUN npm install -g @upstash/mcp-server
50
80
 
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).
81
+ # Expose default port if needed (optional, depends on MCP client interaction)
82
+ # EXPOSE 3000
55
83
 
56
- ```bash
57
- npx -y @upstash/mcp-server run <UPSTASH_EMAIL> <UPSTASH_API_KEY>
58
- ```
84
+ # Default command to run the server
85
+ CMD ["upstash-mcp-server"]
86
+ ```
59
87
 
60
- </details>
88
+ </details>
61
89
 
62
- ### Installing for Windsurf
90
+ 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
91
 
64
- To install Upstash MCP Server for Windsurf automatically via [Smithery](https://smithery.ai/server/@upstash/mcp-server) run the following command:
92
+ ```bash
93
+ docker build -t upstash-mcp .
94
+ ```
65
95
 
66
- ```bash
67
- npx -y @smithery/cli@latest install @upstash/mcp-server --client windsurf
68
- ```
96
+ 2. **Configure Your MCP Client:**
69
97
 
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).
98
+ Update your MCP client's configuration to use the Docker command.
74
99
 
75
- ```bash
76
- npx -y @upstash/mcp-server run <UPSTASH_EMAIL> <UPSTASH_API_KEY>
77
- ```
100
+ _Example for a claude_desktop_config.json:_
78
101
 
79
- </details>
102
+ ```json
103
+ {
104
+ "mcpServers": {
105
+ "upstash": {
106
+ "command": "docker",
107
+ "args": [
108
+ "run",
109
+ "-i",
110
+ "--rm",
111
+ "-e",
112
+ "UPSTASH_EMAIL=YOUR_EMAIL",
113
+ "-e",
114
+ "UPSTASH_API_KEY=YOUR_API_KEY",
115
+ "upstash-mcp"
116
+ ]
117
+ }
118
+ }
119
+ }
120
+ ```
80
121
 
81
- ### Running with Docker
122
+ _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
123
 
83
- You can also use the provided Docker image to run the server.
124
+ </details>
84
125
 
85
- ```bash
86
- docker build -t upstash-mcp .
126
+ ## Requirements
87
127
 
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
- ```
128
+ - Node.js >= v18.0.0
129
+ - [Upstash API key](https://upstash.com/docs/devops/developer-api) - You can create one from [here](https://console.upstash.com/account/api).
94
130
 
95
131
  ### Troubleshooting
96
132
 
@@ -146,23 +182,26 @@ UPSTASH_EMAIL=<UPSTASH_EMAIL>
146
182
  UPSTASH_API_KEY=<UPSTASH_API_KEY>
147
183
  ```
148
184
 
149
- This will be used for setting the Claude config and running mcp inspector.
185
+ This will be used for setting the Claude config.
150
186
 
151
187
  ### Testing with Claude Desktop
152
188
 
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.
189
+ To install the Claude Desktop config for local development, add the following to your Claude Desktop MCP config:
160
190
 
161
191
  ```json
162
192
  {
163
- "upstash": {
164
- "command": "node",
165
- "args": ["<path-to-repo>/dist/index.js", "run", "<UPSTASH_EMAIL>", "<UPSTASH_API_KEY>"]
193
+ "mcpServers": {
194
+ "upstash": {
195
+ "command": "node",
196
+ "args": [
197
+ "<path-to-repo>/dist/index.js",
198
+ "run",
199
+ "--email",
200
+ "<UPSTASH_EMAIL>",
201
+ "--api-key",
202
+ "<UPSTASH_API_KEY>"
203
+ ]
204
+ }
166
205
  }
167
206
  }
168
207
  ```
@@ -176,11 +215,3 @@ To view the logs from the MCP Server in real time, run the following command:
176
215
  ```bash
177
216
  pnpm run logs
178
217
  ```
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 };