About Shioaji-MCP
Shioaji-MCP is an example project combining a Shioaji stock-trading MCP server with an MCP host using OpenAI-compatible APIs. It is intended for developers exploring MCP communication with OpenAI or Ollama; the Shioaji server requires additional configuration.
Key features
- 01Shioaji server with basic stock-trading functions
- 02Example Weather MCP server
- 03OpenAI-compatible API host
- 04Switch between OpenAI and Ollama
- 05Configure connected servers in config.json
Use cases
- 01Explore an end-to-end MCP client and server setup
- 02Try Shioaji trading functions after configuration
- 03Connect a Weather server to an MCP host
- 04Switch the host's LLM provider
MCP support
Includes a Shioaji MCP server and an MCP host that connects to configured servers. The host uses OpenAI-compatible APIs and supports OpenAI and Ollama.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEend2end-mcp
An end-to-end example of building Model Context Protocol (MCP) clients and communicates between several MCP servers with OpenAI compatible APIs.

TL;DR
You can run your MCP servers with a similar method as you run them with Claude Desktop App for just a simple command:
uv run python client/client.py
Prerequisites
- Make sure you have
uvinstalled.
uv venv
source .venv/bin/activate
uv sync
Brief Introduction
Example MCP servers
- Shioaji: An example MCP server that provides basic stock trading functionalities using Shioaji API, you'll need further configuration to properly use it.
- Weather: Just a simple example from MCP official doc
MCP host
Instead of following the Claude API, I replace it with OpenAI compatible APIs, supporting two main LLM providers:
- OpenAI
- Ollama
Where you can change between them by modifying the LLM_PROVIDER environment variable.
Connect with MCP host
After choosing your LLM provider, you can connect servers with the MCP host by modifying the config.json file, just like the example below:
{
"mcpServers": {
"weather": {
"args": [
"--directory",
"root_path",
"run",
"server_file.py"
],
"command": "uv_exec_command"
}
}
}
Run MCP host
You can run the MCP host with the following command:
uv run python client/client.py
After finishing playing with the MCP host, you can just type exit to leave
The shioaji-server in
server/is certified by MCP Review. The mcp review link
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.