finmap-mcp 1.1.1 → 1.2.0

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
@@ -6,13 +6,14 @@ The finmap.org MCP server provides comprehensive historical data from the US, UK
6
6
 
7
7
  | Exchange | Code | Country | Earliest Data | Update Frequency |
8
8
  |----------|------|---------|---------------|------------------|
9
- | Moscow Exchange | `moex` | Russia | 2011-12-19 | Every 15 minutes (weekdays) |
10
9
  | New York Stock Exchange | `nyse` | United States | 2024-12-09 | Hourly (weekdays) |
11
10
  | NASDAQ Stock Market | `nasdaq` | United States | 2024-12-09 | Hourly (weekdays) |
12
11
  | American Stock Exchange | `amex` | United States | 2024-12-09 | Hourly (weekdays) |
13
12
  | US Combined (AMEX + NASDAQ + NYSE) | `us-all` | United States | 2024-12-09 | Hourly (weekdays) |
14
13
  | London Stock Exchange | `lse` | United Kingdom | 2025-02-07 | Hourly (weekdays) |
15
- | Borsa Istanbul | `bist` | Turkey | 2015-11-30 | Bi-monthly |
14
+ | Hong Kong Stock Exchange | `hkex` | Hong Kong | 2025-09-26 | Every 30 minutes (weekdays) |
15
+ | Borsa Istanbul | `bist` | Turkey | 2015-11-30 | Every two months |
16
+ | Moscow Exchange | `moex` | Russia | 2011-12-19 | Every 15 minutes (weekdays) |
16
17
 
17
18
  ## Installation & Usage
18
19
 
@@ -125,6 +126,14 @@ npx finmap-mcp
125
126
  "currency": "TRY",
126
127
  "availableSince": "2015-11-30",
127
128
  "updateFrequency": "Every two months"
129
+ },
130
+ {
131
+ "id": "hkex",
132
+ "name": "Hong Kong Stock Exchange",
133
+ "country": "Hong Kong",
134
+ "currency": "HKD",
135
+ "availableSince": "2025-09-26",
136
+ "updateFrequency": "Every 30 minutes (weekdays)"
128
137
  }
129
138
  ]
130
139
  }
package/dist/core.js CHANGED
@@ -20,6 +20,7 @@ const STOCK_EXCHANGES = [
20
20
  "lse",
21
21
  "moex",
22
22
  "bist",
23
+ "hkex",
23
24
  ];
24
25
  const US_EXCHANGES = ["amex", "nasdaq", "nyse"];
25
26
  const SORT_FIELDS = [
@@ -63,6 +64,7 @@ const EXCHANGE_TO_COUNTRY_MAP = {
63
64
  lse: "uk",
64
65
  moex: "russia",
65
66
  bist: "turkey",
67
+ hkex: "hongkong",
66
68
  };
67
69
  function createResponse(data) {
68
70
  return {
@@ -74,8 +76,8 @@ function createErrorResponse(error) {
74
76
  }
75
77
  function createCharts(exchange, date) {
76
78
  return {
77
- histogram: `${BASE_URL}/?chartType=histogram&dataType=marketcap&exchange=${exchange}`,
78
- treemap: `${BASE_URL}/?chartType=treemap&dataType=marketcap&exchange=${exchange}${date ? `&date=${date}` : ""}`,
79
+ histogram: `${BASE_URL}/?chart=histogram&data=marketcap&currency=USD&exchange=${exchange}`,
80
+ treemap: `${BASE_URL}/?chart=treemap&data=marketcap&currency=USD&exchange=${exchange}${date ? `&date=${date.replaceAll("-", "/")}` : ""}`,
79
81
  };
80
82
  }
81
83
  function calculateMatchScore(ticker, name, searchTerm) {
@@ -141,10 +143,17 @@ const EXCHANGE_INFO = {
141
143
  availableSince: "2015-11-30",
142
144
  updateFrequency: "Every two months",
143
145
  },
146
+ hkex: {
147
+ name: "Hong Kong Stock Exchange",
148
+ country: "Hong Kong",
149
+ currency: "HKD",
150
+ availableSince: "2025-09-29",
151
+ updateFrequency: "Every 30 minutes (weekdays)",
152
+ },
144
153
  };
145
154
  const exchangeSchema = z
146
155
  .enum(STOCK_EXCHANGES)
147
- .describe("Stock exchange: amex, nasdaq, nyse, us-all, lse, moex, bist");
156
+ .describe("Stock exchange: amex, nasdaq, nyse, us-all, lse, moex, bist, hkex");
148
157
  const dateSchema = {
149
158
  year: z.number().int().min(2012).optional(),
150
159
  month: z.number().int().min(1).max(12).optional(),
@@ -4,7 +4,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
  const server = new McpServer({
6
6
  name: "finmap-mcp",
7
- version: "1.1.1",
7
+ version: "1.2.0",
8
8
  });
9
9
  registerFinmapTools(server);
10
10
  const transport = new StdioServerTransport();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finmap-mcp",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "MCP server providing financial market data from finmap.org",
5
5
  "main": "./dist/stdio-server.js",
6
6
  "type": "module",
@@ -73,16 +73,16 @@
73
73
  "package": "npm run build:stdio && npm pack --pack-destination dist"
74
74
  },
75
75
  "dependencies": {
76
- "@modelcontextprotocol/sdk": "1.17.4",
76
+ "@modelcontextprotocol/sdk": "1.17.5",
77
77
  "agents": "^0.0.113",
78
78
  "zod": "^3.25.76"
79
79
  },
80
80
  "devDependencies": {
81
- "@biomejs/biome": "^2.2.2",
82
- "@types/node": "^24.3.0",
81
+ "@biomejs/biome": "^2.2.3",
82
+ "@types/node": "^24.3.1",
83
83
  "rimraf": "^6.0.1",
84
84
  "tsx": "^4.20.5",
85
85
  "typescript": "5.9.2",
86
- "wrangler": "^4.33.1"
86
+ "wrangler": "^4.34.0"
87
87
  }
88
88
  }