Stock & Crypto MCP

v0.1.15Finance & Fintechstable

MCP Server for stock and crypto

akshareaktoolsbtccryptollm
Share:
379
Stars
0
Downloads
0
Weekly
0/5

What is Stock & Crypto MCP?

Stock & Crypto MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for stock and crypto

MCP Server for stock and crypto

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP Server for stock and crypto

Use Cases

Stock market data query
Cryptocurrency analysis
Financial data access
al-one

Maintainer

LicenseMIT License
Languagepython
Versionv0.1.15
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

PIP

pip install mcp-aktools

Manual Installation

pip install mcp-aktools

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Stock & Crypto MCP

The mcp-aktools MCP Server provides AI assistants with live and historical financial market data for stocks and cryptocurrencies via the AKShare data library. It covers A-share, Hong Kong, and US equity markets alongside cryptocurrency exchange data from OKX and Binance, plus financial news feeds — letting you analyze markets, screen stocks, and track crypto trends directly within your AI conversations.

Prerequisites

  • Python 3.10+ with pip (for the uvx/pip installation method) or Docker (for the containerized method)
  • uvx (part of the uv Python toolchain) for the recommended installation
  • Network access to AKShare data sources, OKX, and Binance APIs (no API keys required for most data)
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Install via uvx (recommended)

The simplest way to run mcp-aktools is with uvx, which handles the virtual environment automatically.

# Install uv if not already available
curl -LsSf https://astral.sh/uv/install.sh | sh

# Add the server directly to Claude Code
claude mcp add aktools -- uvx mcp-aktools
2

Or install via pip

Install the package with pip and run it directly.

pip install mcp-aktools
python -m mcp_aktools
3

Or deploy with Docker Compose

For a persistent server deployment, use the provided Docker Compose configuration.

mkdir /opt/mcp-aktools && cd /opt/mcp-aktools
wget https://raw.githubusercontent.com/aahl/mcp-aktools/refs/heads/main/docker-compose.yml
docker-compose up -d
4

Configure optional data source URLs

By default the server uses public endpoints. You can override exchange API base URLs via environment variables if needed (e.g. for regional proxies).

5

Add to your MCP client configuration

Add mcp-aktools to your claude_desktop_config.json using uvx as the command.

6

Restart your client and test a market query

Restart Claude Desktop and ask for current stock prices or cryptocurrency data to confirm the server is working.

Stock & Crypto MCP Examples

Client configuration

claude_desktop_config.json entry using uvx to run mcp-aktools. The env block is optional and only needed for custom proxy URLs.

{
  "mcpServers": {
    "aktools": {
      "command": "uvx",
      "args": ["mcp-aktools"],
      "env": {
        "OKX_BASE_URL": "https://okx.4url.cn",
        "BINANCE_BASE_URL": "https://bian.4url.cn",
        "NEWSNOW_CHANNELS": "wallstreetcn-quick,cls-telegraph,jin10"
      }
    }
  }
}

Prompts to try

Sample prompts for stock and crypto analysis with the mcp-aktools server.

- "What is the current price and today's change for 600519 (Moutai) on the A-share market?"
- "Show me the limit-up pool stocks on the A-share market today"
- "Get the sector fund flow rankings and tell me which sectors are attracting the most money"
- "What are the current BTC and ETH prices on OKX?"
- "Show me the latest financial news from Wall Street CN"
- "Get the Dragon and Tiger List for the top institutional buys this week"

Troubleshooting Stock & Crypto MCP

AKShare data fetch errors or timeouts

AKShare connects to multiple Chinese financial data sources. If you are outside mainland China, some endpoints may be slow or blocked. Consider using a proxy or the Docker deployment behind a suitable network.

uvx command not found after installation

Install the uv toolchain with `curl -LsSf https://astral.sh/uv/install.sh | sh` and restart your terminal. On macOS you can also use `brew install uv`.

Crypto price tools return no data for OKX or Binance

Set OKX_BASE_URL and BINANCE_BASE_URL environment variables to working proxy endpoints if the default public endpoints are not reachable from your network.

Frequently Asked Questions about Stock & Crypto MCP

What is Stock & Crypto MCP?

Stock & Crypto MCP is a Model Context Protocol (MCP) server that mcp server for stock and crypto It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Stock & Crypto MCP?

Install via pip with: pip install mcp-aktools. Then configure your AI client to connect to this MCP server.

Which AI clients work with Stock & Crypto MCP?

Stock & Crypto MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Stock & Crypto MCP free to use?

Yes, Stock & Crypto MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-server-for-stock-and-crypto": { "command": "pip", "args": ["install", "mcp-aktools"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Stock & Crypto MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides