@0xmonaco/mcp-server 0.5.6 → 0.5.8

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 ADDED
@@ -0,0 +1,142 @@
1
+ # @0xmonaco/mcp-server
2
+
3
+ MCP server for the Monaco SDK — gives AI assistants access to the Monaco protocol on Sei.
4
+
5
+ Works in **public-only mode** with zero configuration. Add a private key to unlock trading, deposits, withdrawals, and other authenticated tools.
6
+
7
+ ## Configuration
8
+
9
+ | Variable | Required | Description |
10
+ |----------------------|----------|--------------------------------------------|
11
+ | `MONACO_PRIVATE_KEY` | No | Wallet private key (`0x...`) — enables authenticated tools |
12
+ | `MONACO_CLIENT_ID` | No | Monaco application client ID — required with `MONACO_PRIVATE_KEY` |
13
+ | `MONACO_NETWORK` | No | Network to connect to (default: `mainnet`) |
14
+ | `MONACO_RPC_URL` | No | Sei RPC URL (defaults per network) |
15
+
16
+ ### Networks
17
+
18
+ Set `MONACO_NETWORK` to one of the following:
19
+
20
+ | Network | API URL | Default RPC URL |
21
+ |---------------------|---------------------------------|----------------------------------------|
22
+ | `mainnet` (default) | `https://api.monaco.xyz` | `https://evm-rpc.sei-apis.com` |
23
+ | `development` | `https://develop.apimonaco.xyz` | `https://evm-rpc-testnet.sei-apis.com` |
24
+ | `staging` | `https://staging.apimonaco.xyz` | `https://evm-rpc-testnet.sei-apis.com` |
25
+ | `local` | `http://localhost:8080` | `http://localhost:8545` |
26
+
27
+ ## Installation
28
+
29
+ Add the following to your MCP config:
30
+
31
+ - **Cursor** — `~/.cursor/mcp.json`
32
+ - **Windsurf** — `~/.codeium/windsurf/mcp_config.json`
33
+ - **Claude Desktop** — `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
34
+
35
+ ### Public-only mode (no env vars needed)
36
+
37
+ Market data, orderbook, trades, and docs search — no wallet required.
38
+
39
+ ```json
40
+ {
41
+ "mcpServers": {
42
+ "monaco": {
43
+ "command": "npx",
44
+ "args": ["-y", "@0xmonaco/mcp-server"]
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ ### Full access (with authentication)
51
+
52
+ All tools including trading, deposits, withdrawals, and profile.
53
+
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "monaco": {
58
+ "command": "npx",
59
+ "args": ["-y", "@0xmonaco/mcp-server"],
60
+ "env": {
61
+ "MONACO_PRIVATE_KEY": "0x...",
62
+ "MONACO_CLIENT_ID": "your-client-id"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ ```
68
+
69
+ To connect to a non-mainnet network, add `MONACO_NETWORK` to the `env` block (`mainnet`, `development`, `staging`, `local`). RPC URLs default automatically per network but can be overridden with `MONACO_RPC_URL`.
70
+
71
+ ## Tools
72
+
73
+ ### Search (public)
74
+
75
+ | Tool | Description |
76
+ |---------------|---------------------------------|
77
+ | `search_docs` | Search the Monaco documentation |
78
+
79
+ ### Market (public)
80
+
81
+ | Tool | Description |
82
+ |------------------------------|--------------------------------------------|
83
+ | `get_trading_pairs` | List trading pairs with optional filters |
84
+ | `get_trading_pair_by_symbol` | Look up a pair by symbol (e.g. `BTC/USDC`) |
85
+ | `get_candlesticks` | OHLCV candlestick data |
86
+ | `get_market_metadata` | Tick size, min order size, trading rules |
87
+
88
+ ### Orderbook (public)
89
+
90
+ | Tool | Description |
91
+ |-----------------|-------------------------------------------|
92
+ | `get_orderbook` | Current orderbook snapshot with bids/asks |
93
+
94
+ ### Trades (public)
95
+
96
+ | Tool | Description |
97
+ |--------------|------------------------------|
98
+ | `get_trades` | Historical trades for a pair |
99
+
100
+ ### Trading (authenticated)
101
+
102
+ | Tool | Description |
103
+ |---------------------------|--------------------------|
104
+ | `place_limit_order` | Place a limit order |
105
+ | `place_market_order` | Place a market order |
106
+ | `cancel_order` | Cancel an order by ID |
107
+ | `batch_cancel_orders` | Cancel multiple orders |
108
+ | `batch_cancel_all_orders` | Cancel all open orders |
109
+ | `replace_order` | Modify an existing order |
110
+ | `get_orders` | List orders with filters |
111
+ | `get_order` | Get order details by ID |
112
+
113
+ ### Profile (authenticated)
114
+
115
+ | Tool | Description |
116
+ |------------------------|-----------------------------------------|
117
+ | `get_profile` | User profile, balances, recent activity |
118
+ | `get_balances` | Token balances with pagination |
119
+ | `get_balance_by_asset` | Balance for a specific asset |
120
+ | `get_movements` | Transaction history |
121
+
122
+ ### Fees (authenticated)
123
+
124
+ | Tool | Description |
125
+ |-----------------|---------------------------------------|
126
+ | `simulate_fees` | Simulate fees before placing an order |
127
+
128
+ ### Vault (authenticated + on-chain)
129
+
130
+ | Tool | Description |
131
+ |------------------------|--------------------------------|
132
+ | `vault_approve` | Approve vault to spend tokens |
133
+ | `vault_deposit` | Deposit tokens into the vault |
134
+ | `vault_withdraw` | Withdraw tokens from the vault |
135
+ | `vault_get_allowance` | Check current token allowance |
136
+ | `vault_needs_approval` | Check if approval is needed |
137
+
138
+ ### Faucet (authenticated, non-mainnet only)
139
+
140
+ | Tool | Description |
141
+ |------------------|------------------------------------------|
142
+ | `request_faucet` | Request test funds for all trading pairs |