@axionquant/mcp 1.0.1 → 1.0.4

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.
Files changed (3) hide show
  1. package/README.md +167 -110
  2. package/index.js +703 -843
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,40 +1,22 @@
1
1
  # Axion MCP Server
2
2
 
3
- A Model Context Protocol (MCP) server that provides LLM access to the Axion financial data API endpoints.
4
-
5
- ## Overview
6
-
7
- This MCP server exposes all Axion product API endpoints as LLM-accessible tools, enabling AI assistants to query financial data including stocks, cryptocurrencies, forex, futures, indices, ETFs, credit ratings, ESG data, and supply chain information.
3
+ A Model Context Protocol (MCP) server that gives LLMs access to the [Axion](https://axionquant.com) financial data API - covering stocks, crypto, forex, futures, indices, ETFs, economics, news, sentiment, filings, financials, and more.
8
4
 
9
5
  ## Installation
10
6
 
11
- 1. Install dependencies:
12
7
  ```bash
13
- cd server/mcp-server
14
- npm install
8
+ npm i @axionquant/mcp
15
9
  ```
16
10
 
17
- 2. Configure environment variables:
18
- ```bash
19
- cp .env.example .env
20
- ```
11
+ ## Configuration
21
12
 
22
- Edit `.env` and set:
23
- - `API_KEY`: Your API authentication key (if required)
13
+ [Get your free API key](https://axionquant.com/dashboard/api-keys)
24
14
 
25
- ## Usage
15
+ ### Claude Desktop
26
16
 
27
- ### Running the Server
28
-
29
- ```bash
30
- npm start
31
- ```
17
+ Add the following to your Claude Desktop config file:
32
18
 
33
- ### Configuring with Claude Desktop
34
-
35
- Add this to your Claude Desktop configuration file:
36
-
37
- **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
19
+ **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
38
20
  **Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
39
21
 
40
22
  ```json
@@ -42,7 +24,7 @@ Add this to your Claude Desktop configuration file:
42
24
  "mcpServers": {
43
25
  "axion-financial-data": {
44
26
  "command": "node",
45
- "args": ["/absolute/path/to/axion/server/mcp-server/index.js"],
27
+ "args": ["/absolute/path/to/node_modules/@axionquant/mcp/index.js"],
46
28
  "env": {
47
29
  "API_KEY": "your_api_key_here"
48
30
  }
@@ -51,111 +33,186 @@ Add this to your Claude Desktop configuration file:
51
33
  }
52
34
  ```
53
35
 
54
- ### Using with Other MCP Clients
36
+ ### Other MCP Clients
55
37
 
56
- The server uses stdio transport, making it compatible with any MCP client. Configure according to your client's documentation.
38
+ The server uses stdio transport and is compatible with any MCP client. Set the `API_KEY` environment variable and configure according to your client's documentation.
57
39
 
58
40
  ## Available Tools
59
41
 
60
- ### Stock Market Tools
61
- - `get_stock_tickers` - Get all stock tickers with optional country/exchange filtering
62
- - `get_stock_ticker_info` - Get detailed info for a specific stock
63
- - `get_stock_prices` - Get historical price data for a stock
64
-
65
- ### Cryptocurrency Tools
66
- - `get_crypto_tickers` - Get all crypto tickers
67
- - `get_crypto_ticker_info` - Get detailed info for a specific crypto
68
- - `get_crypto_prices` - Get historical price data for a crypto
69
-
70
- ### Forex Tools
71
- - `get_forex_tickers` - Get all forex pairs
72
- - `get_forex_ticker_info` - Get detailed info for a forex pair
73
- - `get_forex_prices` - Get historical price data for a forex pair
74
-
75
- ### Futures Tools
76
- - `get_futures_tickers` - Get all futures tickers
77
- - `get_futures_ticker_info` - Get detailed info for a futures contract
78
- - `get_futures_prices` - Get historical price data for a futures contract
79
-
80
- ### Indices Tools
81
- - `get_indices_tickers` - Get all market indices
82
- - `get_indices_ticker_info` - Get detailed info for an index
83
- - `get_indices_prices` - Get historical price data for an index
84
-
85
- ### ETF Tools
86
- - `get_etf_fund_data` - Get comprehensive fund data including weights and regions
87
- - `get_etf_holdings` - Get detailed holdings information
88
- - `get_etf_exposure` - Get exposure analysis
89
-
90
- ### Credit Rating Tools
91
- - `search_credit_entities` - Search S&P credit rating database
92
- - `get_credit_ratings` - Get credit ratings for a specific entity
93
-
94
- ### ESG Tools
95
- - `get_esg_data` - Get ESG (Environmental, Social, Governance) data for a ticker
96
-
97
- ### Supply Chain Tools
98
- - `get_company_customers` - Get a company's customers
99
- - `get_company_peers` - Get peer companies (competitors)
100
- - `get_company_suppliers` - Get a company's suppliers
42
+ ### Stocks
43
+ | Tool | Description |
44
+ |------|-------------|
45
+ | `stocks_tickers` | List stock tickers, optionally filtered by country or exchange |
46
+ | `stocks_quote` | Get current quote/details for a stock ticker |
47
+ | `stocks_prices` | Get historical price data (supports `from`, `to`, `frame`) |
48
+
49
+ ### Crypto
50
+ | Tool | Description |
51
+ |------|-------------|
52
+ | `crypto_tickers` | List cryptocurrency tickers, optionally filtered by type |
53
+ | `crypto_quote` | Get current details for a cryptocurrency |
54
+ | `crypto_prices` | Get historical price data |
55
+
56
+ ### Forex
57
+ | Tool | Description |
58
+ |------|-------------|
59
+ | `forex_tickers` | List forex pairs, optionally filtered by country or exchange |
60
+ | `forex_quote` | Get current details for a forex pair |
61
+ | `forex_prices` | Get historical price data |
62
+
63
+ ### Futures
64
+ | Tool | Description |
65
+ |------|-------------|
66
+ | `futures_tickers` | List futures tickers, optionally filtered by exchange |
67
+ | `futures_quote` | Get current details for a futures contract |
68
+ | `futures_prices` | Get historical price data |
69
+
70
+ ### Indices
71
+ | Tool | Description |
72
+ |------|-------------|
73
+ | `indices_tickers` | List index tickers, optionally filtered by exchange |
74
+ | `indices_quote` | Get current details for an index |
75
+ | `indices_prices` | Get historical price data |
76
+
77
+ ### ETFs
78
+ | Tool | Description |
79
+ |------|-------------|
80
+ | `etf_fund` | Get ETF fund information including ratings and metrics |
81
+ | `etf_holdings` | Get top holdings with weights, shares, and market value |
82
+ | `etf_exposure` | Find which ETFs hold a specific stock ticker |
83
+
84
+ ### Economics (FRED)
85
+ | Tool | Description |
86
+ |------|-------------|
87
+ | `econ_search` | Search for economic datasets |
88
+ | `econ_dataset` | Get a time series by dataset ID |
89
+ | `econ_calendar` | Get economic calendar events (filterable by country, currency, category, importance) |
90
+
91
+ ### News
92
+ | Tool | Description |
93
+ |------|-------------|
94
+ | `news_general` | Get general market news headlines |
95
+ | `news_ticker` | Get news for a specific company |
96
+ | `news_country` | Get news for a specific country |
97
+ | `news_category` | Get news by category (e.g. `business`, `technology`) |
98
+
99
+ ### Sentiment
100
+ | Tool | Description |
101
+ |------|-------------|
102
+ | `sentiment_all` | Get combined sentiment (social + news + analyst) for a ticker |
103
+ | `sentiment_social` | Get social media sentiment |
104
+ | `sentiment_news` | Get news sentiment |
105
+ | `sentiment_analyst` | Get analyst/AI sentiment |
106
+
107
+ ### Profiles
108
+ | Tool | Description |
109
+ |------|-------------|
110
+ | `profiles_profile` | Get full asset profile |
111
+ | `profiles_recommendation` | Get analyst recommendation trend |
112
+ | `profiles_statistics` | Get key statistics |
113
+ | `profiles_summary` | Get summary detail |
114
+ | `profiles_calendar` | Get earnings and dividend calendar events |
115
+ | `profiles_info` | Get company info / summary profile |
116
+
117
+ ### Earnings
118
+ | Tool | Description |
119
+ |------|-------------|
120
+ | `earnings_history` | Get historical earnings |
121
+ | `earnings_trend` | Get earnings trend |
122
+ | `earnings_index` | Get index trend |
123
+ | `earnings_report` | Get earnings report for a specific year and quarter |
124
+
125
+ ### SEC Filings
126
+ | Tool | Description |
127
+ |------|-------------|
128
+ | `filings_recent` | Get recent filings, optionally filtered by form type |
129
+ | `filings_forms` | Get filings by form type (e.g. `10-K`, `8-K`) |
130
+ | `filings_desc_forms` | List all available SEC form types |
131
+ | `filings_search` | Search filings by year/quarter |
132
+
133
+ ### Financials
134
+ | Tool | Description |
135
+ |------|-------------|
136
+ | `financials_revenue` | Historical revenue |
137
+ | `financials_net_income` | Historical net income |
138
+ | `financials_total_assets` | Historical total assets |
139
+ | `financials_total_liabilities` | Historical total liabilities |
140
+ | `financials_stockholders_equity` | Historical stockholders equity |
141
+ | `financials_current_assets` | Historical current assets |
142
+ | `financials_current_liabilities` | Historical current liabilities |
143
+ | `financials_operating_cash_flow` | Historical operating cash flow |
144
+ | `financials_capital_expenditures` | Historical capital expenditures |
145
+ | `financials_free_cash_flow` | Historical free cash flow |
146
+ | `financials_shares_outstanding_basic` | Historical basic shares outstanding |
147
+ | `financials_shares_outstanding_diluted` | Historical diluted shares outstanding |
148
+ | `financials_metrics` | Calculated financial metrics |
149
+ | `financials_snapshot` | Snapshot of key financial data |
150
+
151
+ ### Insiders & Ownership
152
+ | Tool | Description |
153
+ |------|-------------|
154
+ | `insiders_funds` | Fund ownership data |
155
+ | `insiders_individuals` | Insider holders (individuals) |
156
+ | `insiders_institutions` | Institutional ownership |
157
+ | `insiders_ownership` | Major holders breakdown |
158
+ | `insiders_activity` | Net share purchase activity |
159
+ | `insiders_transactions` | Insider transactions |
160
+
161
+ ### ESG
162
+ | Tool | Description |
163
+ |------|-------------|
164
+ | `esg_data` | Get ESG (Environmental, Social, Governance) scores for a ticker |
165
+
166
+ ### Supply Chain
167
+ | Tool | Description |
168
+ |------|-------------|
169
+ | `supply_chain_customers` | Get a company's customers |
170
+ | `supply_chain_peers` | Get peer companies / competitors |
171
+ | `supply_chain_suppliers` | Get a company's suppliers |
172
+
173
+ ### Credit
174
+ | Tool | Description |
175
+ |------|-------------|
176
+ | `credit_search` | Search the S&P credit rating database by organization name |
177
+ | `credit_ratings` | Get credit ratings for a specific organization by ID |
178
+
179
+ ### Web Traffic
180
+ | Tool | Description |
181
+ |------|-------------|
182
+ | `webtraffic_traffic` | Get website traffic data for a company |
101
183
 
102
184
  ## Example Queries
103
185
 
104
- Once configured with an LLM client like Claude Desktop, you can ask:
186
+ Once connected to an LLM like Claude, you can ask natural language questions such as:
105
187
 
106
- - "What are the current stock tickers for NASDAQ?"
107
- - "Get me the historical prices for Bitcoin over the last month"
108
- - "What are the top holdings in the SPY ETF?"
109
- - "Search for Apple's credit rating"
110
- - "Show me Tesla's ESG data"
188
+ - "What are the NASDAQ-listed stock tickers?"
189
+ - "Get Bitcoin's price history for the last 30 days"
190
+ - "What are SPY's top 10 holdings?"
191
+ - "Show me Apple's credit rating"
192
+ - "What's Tesla's ESG score?"
111
193
  - "Who are the main suppliers for AAPL?"
112
- - "Get forex rates for EUR/USD"
194
+ - "Get the EUR/USD exchange rate history"
195
+ - "What SEC filings has Microsoft made this year?"
196
+ - "Show me NVDA's free cash flow over the last 8 quarters"
197
+ - "What's the economic calendar for next week?"
113
198
 
114
199
  ## Architecture
115
200
 
116
- The MCP server acts as a bridge between LLMs and your Axion REST API:
117
-
118
201
  ```
119
202
  LLM (Claude, etc.) <--> MCP Server <--> Axion REST API
120
203
  ```
121
204
 
122
- All API requests are proxied through the MCP server, which translates LLM tool calls into REST API requests.
123
-
124
- ## Development
125
-
126
- ### Project Structure
127
- ```
128
- server/mcp-server/
129
- ├── index.js # Main MCP server implementation
130
- ├── package.json # Node.js dependencies
131
- ├── .env.example # Environment variable template
132
- └── README.md # This file
133
- ```
134
-
135
- ### Adding New Tools
136
-
137
- To add new API endpoints:
205
+ ## Troubleshooting
138
206
 
139
- 1. Add the tool definition in `ListToolsRequestSchema` handler
140
- 2. Add the corresponding case in `CallToolRequestSchema` handler
141
- 3. Update this README with the new tool
207
+ **Tools not appearing in your LLM client** - Restart the client and verify the config file path is correct and absolute.
142
208
 
143
- ## Troubleshooting
209
+ **API requests failing** - Check that `API_KEY` is set correctly in your environment or config. Review server logs for detailed error messages.
144
210
 
145
- ### Server won't start
146
- - Ensure Node.js is installed (v18+ recommended)
147
- - Check that all dependencies are installed: `npm install`
148
- - Verify the `.env` file exists and has correct values
211
+ **Server won't start** - Ensure Node.js v18+ is installed and the package is installed via `npm i @axionquant/mcp`.
149
212
 
150
- ### Tools not appearing in LLM
151
- - Restart your MCP client (e.g., Claude Desktop)
152
- - Check the client configuration file has the correct absolute path
153
- - Verify the server is running without errors
213
+ ## Get Started
154
214
 
155
- ### API requests failing
156
- - Ensure your Axion API server is running
157
- - Verify API_KEY if authentication is required
158
- - Check server logs for detailed error messages
215
+ For detailed API documentation, support, or to obtain an API key, visit the [Axion](https://axionquant.com) website.
159
216
 
160
217
  ## License
161
218