Community maintained and open-source MCP server for the Nasdaq Data Link
Project description
📈 Nasdaq Data Link MCP 🤖
A community developed and maintained Model Context Protocol (MCP) server that provides access to Nasdaq Data Link. Built for use with MCP-compatible clients.
This project aims at making easy to access and explore Nasdaq Data Link’s extensive and valuable financial and economic datasets through natural language interfaces and large language models (LLMs).
🐍 This project uses the official nasdaq/data-link-python SDK
Disclaimer: This is an open-source project not affiliated with or endorsed by Nasdaq, Inc. Nasdaq® is a registered trademark of Nasdaq, Inc.
🌐 Usage
| Nasdaq Data Link MCP - Retail Trading Activity | Nasdaq Data Link MCP - World Bank Data |
Once installed and connected to an MCP-compatible client (e.g., Claude Desktop, this server exposes several tools that your AI assistant can use to fetch data.
In this first version (0.0.1) the project supports the following databases:
- World Bank dataset on Nasdaq Data Link (freely available for personal use);
- Nasdaq RTAT (preview available for free, full data under subscription).
Example conversations might include:
You: What were the most traded stocks by retailers yesterday?
Claude: callsget_rtat(<yetserday>)and returns relevant matches
Or:
You: What was the GDP of Italy in 2022?
Claude: Let me look that up... callsget_indicator_valuetool
Claude: The GDP of Italy in 2022 was approximately...trillion USD.
Or:
You: List all indicators related to CO₂ emissions.
Claude: callssearch_worldbank_indicators("CO2")and returns relevant matches
📦 Installation
1. Clone the Repository
git clone https://github.com/stefanoamorelli/nasdaq-data-link-mcp.git
cd nasdaq-data-link-mcp
2. Install Requirements
You'll need Python 3.10+ and the mcp CLI.
pip install mcp nasdaq-data-link pycountry
MCP SDK: https://github.com/modelcontextprotocol/python-sdk
Nasdaq Data Link SDK: https://github.com/Nasdaq/data-link-python
3. Get Your API Key
Sign up on https://data.nasdaq.com/ and copy your API key.
4. Download World Bank metadata CSV (optional: only if you plan to use the World Bank database)
Download the World Bank metadata from Nasdaq Data Link:
And save it as metadata.csv in the following directory:
nasdaq-data-link-mcp/src/resources/world_data_bank/metadata/metadata.csv
5. Configure the Environment
cp .env.example .env
Then edit .env and add your API key:
NASDAQ_DATA_LINK_API_KEY=your_api_key_here
6. Start the MCP Server
mcp install src/server.py --env-file .env --name "NASDAQ Data Link MCP Server"
This registers the server with your MCP client (e.g., Claude Desktop).
🛠️ Tools
After installation, the following tools are exposed to MCP clients:
📈 Retail Trading Activity Tracker
get_rtat10
Retrieves Retail Trading Activity Tracker 10 (RTAT10) data for specific dates and optional tickers.
{
"action": "tool",
"name": "get_rtat10",
"params": {
"dates": "2025-03-31,2025-03-28,2025-03-27",
"tickers": "TSLA,TQQQ,SQQQ"
}
}
Returns RTAT10 data from Nasdaq Data Link for the given dates and tickers.
get_rtat
Retrieves Retail Trading Activity (RTAT) data for specific dates and optional tickers.
{
"action": "tool",
"name": "get_rtat",
"params": {
"dates": "2025-03-31,2025-03-28,2025-03-27",
"tickers": "TSLA,TQQQ,SQQQ"
}
}
Returns RTAT data from Nasdaq Data Link for the given dates and tickers.
📊 World Bank Tools
get_indicator_value
Fetch the value for a specific indicator and country.
{
"action": "tool",
"name": "get_indicator_value",
"params": {
"country": "Italy",
"indicator": "NY.GDP.MKTP.CD"
}
}
Returns the latest value for that indicator.
country_code
Returns the ISO 3-letter country code (e.g., "ITA" for Italy).
{
"action": "tool",
"name": "country_code",
"params": {
"countryName": "Italy"
}
}
list_worldbank_indicators
Returns a list of all 1500+ indicators available.
{
"action": "tool",
"name": "list_worldbank_indicators"
}
search_worldbank_indicators
Searches for indicators by keyword.
{
"action": "tool",
"name": "search_worldbank_indicators",
"params": {
"keyword": "population"
}
}
🧪 MCP Dev & Debugging
To test the server locally with a UI:
mcp dev src/server.py --env-file .env
This opens the MCP Dev interface where you can call tools manually, inspect results, and troubleshoot.
📊 Architecture Diagram
graph TD
subgraph "Local Machine"
A[MCP Server: Nasdaq Data Link MCP] --> C[MCP Client, ie. Claude Desktop]
end
C -->|user prompt| D[LLM ie. Claude 3.7 Sonnet]
D -->|calls tool| A
A -->|fetches data| B[Nasdaq Data Link API]
B -.-> E[Retail Trading Activity Tracker]
B -.-> F[World Bank Metadata]
📚 References
📄 License
MIT License © 2025 Stefano Amorelli
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nasdaq_data_link_mcp_os-0.1.0.tar.gz.
File metadata
- Download URL: nasdaq_data_link_mcp_os-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e2c7c5984b36ca0e2a1dba29b16e1b20bedf5ec6f0ded7b94bec1d5db678fa8
|
|
| MD5 |
8d63f6b6ba29d989248c4b1fbdcb5385
|
|
| BLAKE2b-256 |
cb06ec5200fdaa184838ea02c76a2b297d09271c3d321d8e2a96f40e3450f7a9
|
File details
Details for the file nasdaq_data_link_mcp_os-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nasdaq_data_link_mcp_os-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f3ece66b168303b911dff24d7117d842861e98a229205f6ca312165274bbe42
|
|
| MD5 |
b3b6cd1a9d1e53d13416375fef14c3c5
|
|
| BLAKE2b-256 |
2ef0d4d6b52b0f9872f54be26af5b63bc26447eb27c7ebfe2fa5860ab325a10a
|