@axionquant/mcp 1.0.5 → 1.0.7
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 +10 -0
- package/index.js +167 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,7 @@ The server uses stdio transport and is compatible with any MCP client. Set the `
|
|
|
79
79
|
|------|-------------|
|
|
80
80
|
| `etf_fund` | Get ETF fund information including ratings and metrics |
|
|
81
81
|
| `etf_holdings` | Get top holdings with weights, shares, and market value |
|
|
82
|
+
| `etf_holdings_all` | Get all ETF holdings with weights and last updated date |
|
|
82
83
|
| `etf_exposure` | Find which ETFs hold a specific stock ticker |
|
|
83
84
|
|
|
84
85
|
### Economics (FRED)
|
|
@@ -147,6 +148,15 @@ The server uses stdio transport and is compatible with any MCP client. Set the `
|
|
|
147
148
|
| `financials_shares_outstanding_diluted` | Historical diluted shares outstanding |
|
|
148
149
|
| `financials_metrics` | Calculated financial metrics |
|
|
149
150
|
| `financials_snapshot` | Snapshot of key financial data |
|
|
151
|
+
| `financials_eps` | TTM earnings per share |
|
|
152
|
+
| `financials_pe` | Price-to-earnings ratio |
|
|
153
|
+
| `financials_market_cap` | Market capitalization |
|
|
154
|
+
| `financials_roe` | Return on equity |
|
|
155
|
+
| `financials_enterprise_value` | Enterprise value |
|
|
156
|
+
| `financials_ebitda` | TTM EBITDA |
|
|
157
|
+
| `financials_debt_to_equity` | Debt-to-equity ratio |
|
|
158
|
+
| `financials_dcf_value` | DCF valuation (enterprise value, fair price, margin of safety, recommendation) |
|
|
159
|
+
| `financials_dcf_rate` | Discount rate / WACC calculation (cost of equity, cost of debt, capital structure) |
|
|
150
160
|
|
|
151
161
|
### Insiders & Ownership
|
|
152
162
|
| Tool | Description |
|
package/index.js
CHANGED
|
@@ -198,6 +198,17 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
198
198
|
required: ["ticker"]
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
|
+
{
|
|
202
|
+
name: "etf_holdings_all",
|
|
203
|
+
description: "Get all ETF holdings with weights and last updated date",
|
|
204
|
+
inputSchema: {
|
|
205
|
+
type: "object",
|
|
206
|
+
properties: {
|
|
207
|
+
ticker: { type: "string", description: "ETF ticker (e.g., SPY)" }
|
|
208
|
+
},
|
|
209
|
+
required: ["ticker"]
|
|
210
|
+
}
|
|
211
|
+
},
|
|
201
212
|
{
|
|
202
213
|
name: "etf_exposure",
|
|
203
214
|
description: "Find which ETFs hold a specific stock ticker",
|
|
@@ -1138,6 +1149,122 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
1138
1149
|
required: ["ticker"]
|
|
1139
1150
|
}
|
|
1140
1151
|
},
|
|
1152
|
+
{
|
|
1153
|
+
name: "financials_dcf_value",
|
|
1154
|
+
description: "Get DCF valuation including enterprise value, fair price, margin of safety, and buy/sell recommendation",
|
|
1155
|
+
inputSchema: {
|
|
1156
|
+
type: "object",
|
|
1157
|
+
properties: {
|
|
1158
|
+
ticker: { type: "string", description: "Stock ticker" }
|
|
1159
|
+
},
|
|
1160
|
+
required: ["ticker"]
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
name: "financials_dcf_rate",
|
|
1165
|
+
description: "Get discount rate / WACC calculation including cost of equity, cost of debt, and capital structure weights",
|
|
1166
|
+
inputSchema: {
|
|
1167
|
+
type: "object",
|
|
1168
|
+
properties: {
|
|
1169
|
+
ticker: { type: "string", description: "Stock ticker" }
|
|
1170
|
+
},
|
|
1171
|
+
required: ["ticker"]
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
name: "financials_eps",
|
|
1176
|
+
description: "Get TTM earnings per share for a ticker",
|
|
1177
|
+
inputSchema: {
|
|
1178
|
+
type: "object",
|
|
1179
|
+
properties: {
|
|
1180
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1181
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
1182
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" }
|
|
1183
|
+
},
|
|
1184
|
+
required: ["ticker"]
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
name: "financials_pe",
|
|
1189
|
+
description: "Get price-to-earnings ratio for a ticker",
|
|
1190
|
+
inputSchema: {
|
|
1191
|
+
type: "object",
|
|
1192
|
+
properties: {
|
|
1193
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1194
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
1195
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" },
|
|
1196
|
+
frame: { type: "string", description: "Resampling frequency: daily, weekly, monthly" }
|
|
1197
|
+
},
|
|
1198
|
+
required: ["ticker"]
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
name: "financials_market_cap",
|
|
1203
|
+
description: "Get market capitalization for a ticker",
|
|
1204
|
+
inputSchema: {
|
|
1205
|
+
type: "object",
|
|
1206
|
+
properties: {
|
|
1207
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1208
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
1209
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" },
|
|
1210
|
+
frame: { type: "string", description: "Resampling frequency: daily, weekly, monthly" }
|
|
1211
|
+
},
|
|
1212
|
+
required: ["ticker"]
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
name: "financials_roe",
|
|
1217
|
+
description: "Get return on equity for a ticker",
|
|
1218
|
+
inputSchema: {
|
|
1219
|
+
type: "object",
|
|
1220
|
+
properties: {
|
|
1221
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1222
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
1223
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" }
|
|
1224
|
+
},
|
|
1225
|
+
required: ["ticker"]
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
name: "financials_enterprise_value",
|
|
1230
|
+
description: "Get enterprise value for a ticker",
|
|
1231
|
+
inputSchema: {
|
|
1232
|
+
type: "object",
|
|
1233
|
+
properties: {
|
|
1234
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1235
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
1236
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" },
|
|
1237
|
+
frame: { type: "string", description: "Resampling frequency: daily, weekly, monthly" }
|
|
1238
|
+
},
|
|
1239
|
+
required: ["ticker"]
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
name: "financials_ebitda",
|
|
1244
|
+
description: "Get TTM EBITDA for a ticker",
|
|
1245
|
+
inputSchema: {
|
|
1246
|
+
type: "object",
|
|
1247
|
+
properties: {
|
|
1248
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1249
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
1250
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" }
|
|
1251
|
+
},
|
|
1252
|
+
required: ["ticker"]
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
name: "financials_debt_to_equity",
|
|
1257
|
+
description: "Get debt-to-equity ratio for a ticker",
|
|
1258
|
+
inputSchema: {
|
|
1259
|
+
type: "object",
|
|
1260
|
+
properties: {
|
|
1261
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1262
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
1263
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" }
|
|
1264
|
+
},
|
|
1265
|
+
required: ["ticker"]
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1141
1268
|
{
|
|
1142
1269
|
name: "financials_balance_sheet",
|
|
1143
1270
|
description: "Get balance sheet statement for a ticker (optionally by year/quarter)",
|
|
@@ -1339,6 +1466,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1339
1466
|
endpoint = `etfs/${args.ticker}/holdings`;
|
|
1340
1467
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1341
1468
|
}
|
|
1469
|
+
else if (name === "etf_holdings_all") {
|
|
1470
|
+
endpoint = `etfs/${args.ticker}/holdings/all`;
|
|
1471
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1472
|
+
}
|
|
1342
1473
|
else if (name === "etf_exposure") {
|
|
1343
1474
|
endpoint = `etfs/${args.ticker}/exposure`;
|
|
1344
1475
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
@@ -1759,6 +1890,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1759
1890
|
endpoint = `financials/${args.ticker}/snapshot`;
|
|
1760
1891
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1761
1892
|
}
|
|
1893
|
+
else if (name === "financials_dcf_value") {
|
|
1894
|
+
endpoint = `financials/dcf/${args.ticker}/value`;
|
|
1895
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1896
|
+
}
|
|
1897
|
+
else if (name === "financials_dcf_rate") {
|
|
1898
|
+
endpoint = `financials/dcf/${args.ticker}/rate`;
|
|
1899
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1900
|
+
}
|
|
1762
1901
|
else if (name === "financials_balance_sheet") {
|
|
1763
1902
|
endpoint = `financials/statements/${args.ticker}/balance${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1764
1903
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
@@ -1771,6 +1910,34 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1771
1910
|
endpoint = `financials/statements/${args.ticker}/cashflow${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1772
1911
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1773
1912
|
}
|
|
1913
|
+
else if (name === "financials_eps") {
|
|
1914
|
+
endpoint = `financials/${args.ticker}/eps${buildQueryString({ from: args.from, to: args.to })}`;
|
|
1915
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1916
|
+
}
|
|
1917
|
+
else if (name === "financials_pe") {
|
|
1918
|
+
endpoint = `financials/${args.ticker}/pe${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
|
|
1919
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1920
|
+
}
|
|
1921
|
+
else if (name === "financials_market_cap") {
|
|
1922
|
+
endpoint = `financials/${args.ticker}/marketcap${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
|
|
1923
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1924
|
+
}
|
|
1925
|
+
else if (name === "financials_roe") {
|
|
1926
|
+
endpoint = `financials/${args.ticker}/roe${buildQueryString({ from: args.from, to: args.to })}`;
|
|
1927
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1928
|
+
}
|
|
1929
|
+
else if (name === "financials_enterprise_value") {
|
|
1930
|
+
endpoint = `financials/${args.ticker}/ev${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
|
|
1931
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1932
|
+
}
|
|
1933
|
+
else if (name === "financials_ebitda") {
|
|
1934
|
+
endpoint = `financials/${args.ticker}/ebitda${buildQueryString({ from: args.from, to: args.to })}`;
|
|
1935
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1936
|
+
}
|
|
1937
|
+
else if (name === "financials_debt_to_equity") {
|
|
1938
|
+
endpoint = `financials/${args.ticker}/de${buildQueryString({ from: args.from, to: args.to })}`;
|
|
1939
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1940
|
+
}
|
|
1774
1941
|
|
|
1775
1942
|
// ---------- Insiders ----------
|
|
1776
1943
|
else if (name === "insiders_funds") {
|