options-data-mcp 0.1.0 → 0.1.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 +2 -2
- package/dist/index.js +2 -5
- package/options-data-mcp-0.1.2.tgz +0 -0
- package/package.json +107 -1
- package/src/index.ts +2 -7
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npx -y options-data-mcp@latest
|
|
|
11
11
|
Or run from source:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
git clone https://github.com/
|
|
14
|
+
git clone https://github.com/thelogicaldude/options-data-mcp
|
|
15
15
|
cd options-data-mcp
|
|
16
16
|
npm install && npm run build
|
|
17
17
|
npm run start
|
|
@@ -26,7 +26,7 @@ Add to your agent's MCP config (e.g., Claude Desktop `claude_desktop_config.json
|
|
|
26
26
|
"mcpServers": {
|
|
27
27
|
"options-data": {
|
|
28
28
|
"command": "npx",
|
|
29
|
-
"args": ["-y", "
|
|
29
|
+
"args": ["-y", "options-data-mcp@latest"],
|
|
30
30
|
"env": {
|
|
31
31
|
"OPTIONS_DATA_API_KEY": "your_api_key_here"
|
|
32
32
|
}
|
package/dist/index.js
CHANGED
|
@@ -21,13 +21,10 @@ async function fetchEndpoint(path, params = {}) {
|
|
|
21
21
|
}
|
|
22
22
|
const server = new McpServer({
|
|
23
23
|
name: "options-data",
|
|
24
|
-
version: "0.1.
|
|
24
|
+
version: "0.1.2",
|
|
25
25
|
});
|
|
26
26
|
function registerTool(name, description, inputSchema, handler) {
|
|
27
|
-
server.tool(name, description,
|
|
28
|
-
key,
|
|
29
|
-
{ description: schema.description || "", type: "string" },
|
|
30
|
-
])), handler);
|
|
27
|
+
server.tool(name, description, inputSchema.shape, handler);
|
|
31
28
|
}
|
|
32
29
|
// Gamma exposure
|
|
33
30
|
registerTool("get_gamma", "Get gamma exposure profile for a ticker — shows dealer positioning, flip zone, and pin strikes", z.object({ ticker: z.string().describe("Ticker symbol, e.g. AAPL, TSLA, SPY") }), async ({ ticker }) => fetchEndpoint("/gamma", { ticker }));
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "options-data-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"mcpName": "io.github.thelogicaldude/options-data",
|
|
4
5
|
"description": "MCP server for Options Data API — gamma exposure, VRP, IV term structure, and more",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"bin": {
|
|
@@ -21,9 +22,114 @@
|
|
|
21
22
|
"tsx": "^4.7.0",
|
|
22
23
|
"@types/node": "^20.0.0"
|
|
23
24
|
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/thelogicaldude/options-data-mcp.git"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/thelogicaldude/options-data-mcp#readme",
|
|
24
30
|
"keywords": ["mcp", "options", "gamma", "vrp", "trading", "ai-agent"],
|
|
25
31
|
"license": "MIT",
|
|
26
32
|
"engines": {
|
|
27
33
|
"node": ">=18"
|
|
34
|
+
},
|
|
35
|
+
"mcp": {
|
|
36
|
+
"server": {
|
|
37
|
+
"name": "options-data",
|
|
38
|
+
"description": "Options market structure data via the Options Data API — gamma exposure, volatility richness, IV term structure, GEX regime, strike recommendations, credit spreads, and a universe screener. Supports both subscription auth (X-API-Key header) and x402 pay-per-call (no key needed).",
|
|
39
|
+
"version": "0.1.2",
|
|
40
|
+
"repository": "github.com/thelogicaldude/options-data-mcp",
|
|
41
|
+
"tools": [
|
|
42
|
+
{
|
|
43
|
+
"name": "get_gamma",
|
|
44
|
+
"description": "Get gamma exposure profile for a ticker — shows dealer positioning, flip zone, and pin strikes",
|
|
45
|
+
"inputSchema": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"ticker": { "type": "string", "description": "Ticker symbol, e.g. AAPL, TSLA, SPY" }
|
|
49
|
+
},
|
|
50
|
+
"required": ["ticker"]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "get_vrp",
|
|
55
|
+
"description": "Get volatility richness premium — compares ATM IV to 30-day realized volatility",
|
|
56
|
+
"inputSchema": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"ticker": { "type": "string", "description": "Ticker symbol, e.g. AAPL, TSLA" }
|
|
60
|
+
},
|
|
61
|
+
"required": ["ticker"]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "get_term_structure",
|
|
66
|
+
"description": "Get IV term structure and skew across multiple DTE buckets",
|
|
67
|
+
"inputSchema": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"ticker": { "type": "string", "description": "Ticker symbol, e.g. AAPL, SPY" }
|
|
71
|
+
},
|
|
72
|
+
"required": ["ticker"]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "get_structure",
|
|
77
|
+
"description": "Full structure bundle — gamma, VRP, and term structure in one call",
|
|
78
|
+
"inputSchema": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"properties": {
|
|
81
|
+
"ticker": { "type": "string", "description": "Ticker symbol, e.g. AAPL, TSLA, SPY" }
|
|
82
|
+
},
|
|
83
|
+
"required": ["ticker"]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "get_regime",
|
|
88
|
+
"description": "Get GEX regime — stabilizing vs destabilizing, flip zone status",
|
|
89
|
+
"inputSchema": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"ticker": { "type": "string", "description": "Ticker symbol, e.g. AAPL, SPY" }
|
|
93
|
+
},
|
|
94
|
+
"required": ["ticker"]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "get_strikes",
|
|
99
|
+
"description": "Get recommended strikes — wheel/covered-call picks or GEX-based support/resistance",
|
|
100
|
+
"inputSchema": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"ticker": { "type": "string", "description": "Ticker symbol, e.g. AAPL, TSLA" }
|
|
104
|
+
},
|
|
105
|
+
"required": ["ticker"]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "get_credit_spread",
|
|
110
|
+
"description": "Get credit spread setup — GEX-regime-gated put/call spreads with sizing",
|
|
111
|
+
"inputSchema": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"ticker": { "type": "string", "description": "Ticker symbol, e.g. SPY, QQQ" }
|
|
115
|
+
},
|
|
116
|
+
"required": ["ticker"]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "get_screener",
|
|
121
|
+
"description": "Scan a universe of optionable stocks and rank by IV, fundamentals, earnings filter, and liquidity",
|
|
122
|
+
"inputSchema": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"ticker": { "type": "string", "description": "Optional ticker to focus screener on specific sector", "default": "" },
|
|
126
|
+
"min_iv": { "type": "number", "description": "Minimum IV percentage (default 60)", "default": 60 },
|
|
127
|
+
"max_results": { "type": "number", "description": "Max results to return (default 20)", "default": 20 }
|
|
128
|
+
},
|
|
129
|
+
"required": []
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
28
134
|
}
|
|
29
135
|
}
|
package/src/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ async function fetchEndpoint(path: string, params: Record<string, string> = {})
|
|
|
24
24
|
|
|
25
25
|
const server = new McpServer({
|
|
26
26
|
name: "options-data",
|
|
27
|
-
version: "0.1.
|
|
27
|
+
version: "0.1.2",
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
function registerTool(
|
|
@@ -36,12 +36,7 @@ function registerTool(
|
|
|
36
36
|
server.tool(
|
|
37
37
|
name,
|
|
38
38
|
description,
|
|
39
|
-
|
|
40
|
-
Object.entries(inputSchema.shape).map(([key, schema]) => [
|
|
41
|
-
key,
|
|
42
|
-
{ description: (schema as any).description || "", type: "string" },
|
|
43
|
-
])
|
|
44
|
-
),
|
|
39
|
+
inputSchema.shape,
|
|
45
40
|
handler
|
|
46
41
|
);
|
|
47
42
|
}
|