Open-source financial data server supporting Tushare Wind and more for AI applications
finData is an open-source financial data inquiry Model Context Protocol (MCP) server, designed to provide advanced-level financial data access capabilities to machine learning models and AI applications. It supports various data sources such as Tushare, which empower users to swiftly integrate professional-grade financial information directly into their AI solutions.
finData serves as a universal adapter for AI applications, facilitating seamless connections with specific data sources through the standardized Model Context Protocol (MCP). This server ensures that advanced machine learning models can effectively interact and utilize diverse financial datasets from multiple suppliers. Key features include:
The finData server is architected to seamlessly integrate with the Model Context Protocol (MCP), allowing for efficient communication between AI applications and financial data providers. The architecture involves multiple components working together:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TD
S[API Server] -->|Query Request| M[MCP Server]
M --> D[Data Provider/Tool]
D --> S[Processed Response]
style S fill:#ccc
style M fill:#e8f5e8
To set up finData MCP Server, ensure the following prerequisites:
pip install python>=3.11 mcp[cli]>=1.6.0 pandas>=2.2.3 tushare>=1.4.21
Once the environment is ready, configure and start the finData MCP Server.
Use uv
to run the finData MCP Server:
{
"mcpServers": {
"finData": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/finData-mcp-server/src/findata",
"run",
"server.py"
],
"env": {
"DATA_API_TOKEN": "", // API token to access data providers
"PROVIDER": "tushare" // Data provider selected
}
}
}
}
In this scenario, an investment firm uses finData MCP Server to gather historical financial data from Tushare. The AI application, powered by continue, queries the server to retrieve daily market trends and perform trend analysis.
{
"query": {
"dataSource": "tushare",
"cmd": "daily",
"args": [
"--start_date", "2018-06-01",
"--end_date", "2023-05-31"
]
}
}
Using finData in combination with Cursor, an e-commerce company can dynamically adjust pricing based on real-time market data. The AI application executes commands to fetch the latest stock prices and makes decisions on price adjustments.
{
"query": {
"dataSource": "tushare",
"cmd": "daily",
"args": [
"--stock_code", "000651"
]
}
}
(finData) supports integration with popular AI clients such as:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
This table outlines the performance and compatibility of finData with different tool sets, providing insights into how effectively it operates across various AI tools.
Advanced users can customize server settings through environment variables and command-line arguments. For security purposes, sensitive information such as API tokens should be secured using environment variables.
{
"mcpServers": {
"finData": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-finData"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Q: How do I ensure compatibility for my AI application with finData MCP Server? A:(finData) is thoroughly compatible with major MCP clients like Claude Desktop, Continue, and Cursor.
Q: Can I use Tushare via an API key directly in the configuration file? A: Yes, configure your environment variables to store sensitive data securely.
Q: Are there any specific tools that require additional setup for finData to function correctly? A: Only Cursor requires a slightly modified approach; integration of other AI clients is straightforward.
Q: How can I secure my API keys when using finData MCP Server? A: Store your API keys as environment variables or in encrypted files, and avoid hardcoding them into the configuration.
Q: What are some common pitfalls developers face when integrating MCP into their AI applications? A: Common challenges include understanding proper environmental variable setup and securing sensitive data during integration.
Contributions to finData MCP Server are welcomed from the community. To contribute, please read our contribution guidelines.
Join the broader MCP ecosystem by exploring other projects and resources designed for Model Context Protocol integration.
By leveraging finData, developers can significantly enhance their AI applications with robust financial data access, making it a vital component for any AI project looking to integrate professional-level financial information.
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Python MCP client for testing servers avoid message limits and customize with API key
Discover easy deployment and management of MCP servers with Glutamate platform for Windows Linux Mac
Explore community contributions to MCP including clients, servers, and projects for seamless integration
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions