@@ -10,13 +10,69 @@ A Python MCP (Model Context Protocol) server for the [Jupiter Ultra API](https:/
10
10
- ** Comprehensive Testing** : Safe testing with mock and real trade execution
11
11
- ** Type-Safe** : Full type annotations for Python
12
12
13
- ## ⚡ Quick Start (MCP Configuration)
13
+ ## 📋 Prerequisites
14
14
15
15
You need:
16
- - [ uv] ( https://docs.astral.sh/uv/getting-started/installation/ ) -> Python dependency manager
17
- - [ npx] ( https://docs.npmjs.com/cli/v10/commands/npx ) (comes with Node.js) -> Used to run Node packages without installing them globally (temporarily used since cursor doesn't support )
16
+ - [ uv] ( https://docs.astral.sh/uv/getting-started/installation/ ) → Python dependency manager
17
+ - [ npx] ( https://docs.npmjs.com/cli/v10/commands/npx ) (comes with Node.js) → Used to run envmcp for secure .env file loading
18
+
19
+ Once uv is installed, restart your shell before proceeding.
20
+
21
+ ## 🚀 1-Click Install for Cursor
22
+
23
+ ### Option 1: Using .env File (Recommended - More Secure)
24
+
25
+ <a href =" cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp-env&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJlbnZtY3AiLCItLWVudi1maWxlIiwifi8uZW52IiwidXZ4IiwiLS1mcm9tIiwiZ2l0K2h0dHBzOi8vZ2l0aHViLmNvbS9hcmFhNDcvanVwaXRlci11bHRyYS1tY3AiLCJqdXBpdGVyLXVsdHJhLW1jcCJdfQ== " >
26
+ <img src =" https://img.shields.io/badge/Install%20with%20.env%20File-00AAFF?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJDMiAxNy41MjMgNi40NzcgMjIgMTIgMjJDMTcuNTIzIDIyIDIyIDE3LjUyMyAyMiAxMkMyMiA2LjQ3NyAxNy41MjMgMiAxMiAyWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEwLjUgN0wxNC41IDE3SDE0TDEwIDE3VjEyTDkuNSA3SDEwLjVaIiBmaWxsPSIjMDBBQUZGIi8+Cjwvc3ZnPg== " alt =" Install Jupiter Ultra MCP with .env file " >
27
+ </a >
28
+
29
+ ** Click the button above to install.** After installation, you'll need to update the env file path:
30
+
31
+ 1 . ** Create your ` .env ` file** at your preferred location (e.g., ` ~/.env ` ):
32
+ ``` bash
33
+ SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
34
+ PRIVATE_KEY=your_base58_encoded_private_key_here
35
+ SOLANA_NETWORK=mainnet-beta
36
+ REQUEST_TIMEOUT=30
37
+ ```
38
+
39
+ 2 . ** Update the path in Cursor** :
40
+ - Go to ** Tools & Integrations** section in Cursor
41
+ - Click on ** MCP Tools**
42
+ - Find ** jupiter-ultra-mcp-env**
43
+ - Hover near the on/off switch and click the ** pencil icon** ✏️
44
+ - Replace ` ~/.env ` with your actual env file path (e.g., ` /Users/yourname/.env ` )
45
+ - Click ** Save**
18
46
19
- Once uv is installed, restart your shell and add this to your MCP client configuration:
47
+ Or copy this link:
48
+ ```
49
+ cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp-env&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJlbnZtY3AiLCItLWVudi1maWxlIiwifi8uZW52IiwidXZ4IiwiLS1mcm9tIiwiZ2l0K2h0dHBzOi8vZ2l0aHViLmNvbS9hcmFhNDcvanVwaXRlci11bHRyYS1tY3AiLCJqdXBpdGVyLXVsdHJhLW1jcCJdfQ==
50
+ ```
51
+
52
+ ### Option 2: With Cursor Input Prompts (Less Secure)
53
+
54
+ If you prefer to configure directly through Cursor prompts:
55
+
56
+ <a href =" cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXQraHR0cHM6Ly9naXRodWIuY29tL2FyYWE0Ny9qdXBpdGVyLXVsdHJhLW1jcCIsImp1cGl0ZXItdWx0cmEtbWNwIl0sImVudiI6eyJQUklWQVRFX0tFWSI6IlJFUExBQ0VfVEhJUyIsIlNPTEFOQV9SUENfVVJMIjoiaHR0cHM6Ly9hcGkubWFpbm5ldC1iZXRhLnNvbGFuYS5jb20iLCJTT0xBTkFfTkVUV09SSyI6Im1haW5uZXQtYmV0YSIsIlJFUVVFU1RfVElNRU9VVCI6IjMwIn19 " >
57
+ <img src =" https://img.shields.io/badge/Install%20in%20Cursor-00AAFF?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJDMiAxNy41MjMgNi40NzcgMjIgMTIgMjJDMTcuNTIzIDIyIDIyIDE3LjUyMyAyMiAxMkMyMiA2LjQ3NyAxNy41MjMgMiAxMiAyWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEwLjUgN0wxNC41IDE3SDE0TDEwIDE3VjEyTDkuNSA3SDEwLjVaIiBmaWxsPSIjMDBBQUZGIi8+Cjwvc3ZnPg== " alt =" Install Jupiter Ultra MCP in Cursor " >
58
+ </a >
59
+
60
+ ** Click the button above to install.** You'll be prompted to replace ` REPLACE_THIS ` with your actual private key.
61
+
62
+ Or copy this link:
63
+ ```
64
+ cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXQraHR0cHM6Ly9naXRodWIuY29tL2FyYWE0Ny9qdXBpdGVyLXVsdHJhLW1jcCIsImp1cGl0ZXItdWx0cmEtbWNwIl0sImVudiI6eyJQUklWQVRFX0tFWSI6IlJFUExBQ0VfVEhJUyIsIlNPTEFOQV9SUENfVVJMIjoiaHR0cHM6Ly9hcGkubWFpbm5ldC1iZXRhLnNvbGFuYS5jb20iLCJTT0xBTkFfTkVUV09SSyI6Im1haW5uZXQtYmV0YSIsIlJFUVVFU1RfVElNRU9VVCI6IjMwIn19
65
+ ```
66
+
67
+ ** Pre-configured values:**
68
+ - ` SOLANA_RPC_URL ` : https://api.mainnet-beta.solana.com
69
+ - ` SOLANA_NETWORK ` : mainnet-beta
70
+ - ` REQUEST_TIMEOUT ` : 30 seconds
71
+ - ` PRIVATE_KEY ` : You'll need to replace ` REPLACE_THIS ` with your base58 encoded private key
72
+
73
+ ## ⚡ Quick Start (MCP Configuration)
74
+
75
+ Add this to your MCP client configuration:
20
76
21
77
Cursor
22
78
``` json
@@ -52,20 +108,21 @@ If you prefer to load environment variables from a `.env` file to avoid storing
52
108
"args" : [
53
109
" envmcp" ,
54
110
" --env-file" ,
55
- " .env " ,
111
+ " ${ENV_FILE_PATH} " ,
56
112
" uvx" ,
57
113
" --from" ,
58
114
" git+https://github.com/araa47/jupiter-ultra-mcp" ,
59
- " jupiter-ultra-mcp" ,
60
- " $SOLANA_RPC_URL" ,
61
- " $PRIVATE_KEY"
62
- ]
115
+ " jupiter-ultra-mcp"
116
+ ],
117
+ "env" : {
118
+ "ENV_FILE_PATH" : " .env"
119
+ }
63
120
}
64
121
}
65
122
}
66
123
```
67
124
68
- This approach uses ` envmcp ` to securely load your PRIVATE_KEY from a ` .env ` file without exposing it in configuration files.
125
+ This approach uses ` envmcp ` to securely load your PRIVATE_KEY from a ` .env ` file without exposing it in configuration files. Replace ` ENV_FILE_PATH ` with the absolute path to your ` .env ` file (e.g., ` /Users/yourname/.env ` or ` /home/user/.env ` ).
69
126
70
127
### Environment Variables Required:
71
128
- ` PRIVATE_KEY ` : Your base58 encoded Solana private key (from Phantom wallet export)
0 commit comments