AKShare MCP サーバー
AKShare ライブラリを使用して財務データ分析機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。
特徴
AKShareを通じて中国および世界の金融市場データにアクセス
MCPプロトコルによるClaude Desktopとの統合
さまざまな財務データのクエリと分析のサポート
インストール
uvの使用(推奨)
pipの使用
使用法
サーバーの実行
Claude Desktopとの統合
Claude Desktop 構成に次の構成を追加します。
Claudeデスクトップを再起動します
利用可能なツールからAKShare MCPサーバーを選択します
利用可能なツール
AKShare MCP サーバーは次のツールを提供します。
株価データクエリ
ファンドデータのクエリ
債券データクエリ
先物データクエリ
外国為替データクエリ
マクロ経済データのクエリ
さらに…
新しいツールの追加
MCP サーバーに新しいツールを追加するには、次の手順に従います。
src/mcp_server_akshare/api.py。async def fetch_new_data_function(param1: str, param2: str = "default") -> List[Dict[str, Any]]: """ Fetch new data type. Args: param1: Description of param1 param2: Description of param2 """ try: df = ak.akshare_function_name(param1=param1, param2=param2) return dataframe_to_dict(df) except Exception as e: logger.error(f"Error fetching new data: {e}") raise新しいツールを。
class AKShareTools(str, Enum): # Existing tools... NEW_TOOL_NAME = "new_tool_name"src/mcp_server_akshare/server.py。from .api import ( # Existing imports... fetch_new_data_function, )handle_list_tools()。types.Tool( name=AKShareTools.NEW_TOOL_NAME.value, description="Description of the new tool", inputSchema={ "type": "object", "properties": { "param1": {"type": "string", "description": "Description of param1"}, "param2": {"type": "string", "description": "Description of param2"}, }, "required": ["param1"], # List required parameters }, ),handle_call_tool()。case AKShareTools.NEW_TOOL_NAME.value: param1 = arguments.get("param1") if not param1: raise ValueError("Missing required argument: param1") param2 = arguments.get("param2", "default") result = await fetch_new_data_function( param1=param1, param2=param2, )サーバーを実行し、新しいツールにリクエストを送信して、新しいツールをテストします。
発達
ドッカー
Docker を使用してサーバーを実行することもできます。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Claude Desktop が AKShare ライブラリを通じて中国および世界の金融市場データにアクセスし、分析できるようにするモデル コンテキスト プロトコル サーバー。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityA collection of Model Context Protocol servers that enable Claude Desktop to provide development assistance capabilities with filesystem, Git, shell command, and web search functionality without incurring API usage costs.Last updated -219MIT License
- Asecurity-licenseAqualityA Model Context Protocol server focused on China's A-share stock market that provides data on stocks, financials, market indices, and macroeconomic indicators.Last updated -27431MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables interaction with Polymarket prediction markets through Claude Desktop.Last updated -3MIT License