Next release (AmiBroker 7.20) news thread

The following is a preliminary demonstration of how an MCP (Model Context Protocol) server allows an LLM to communicate directly with AmiBroker.

MCP is an open protocol that gives an AI model access to a well-defined set of application-specific tools . Instead of being limited to generating text, the LLM can invoke these tools to retrieve information, inspect application state, and perform real actions. In effect, the LLM becomes an intelligent assistant that can interact with software rather than simply describe what should be done.

For AmiBroker, the MCP server acts as a bridge between the LLM and the application. It exposes selected functionality as callable tools, allowing the AI to query charts, run analysis, access market data, and manipulate the user interface under programmatic control. The LLM decides which tool to call based on the user's request, receives the result, and can chain multiple tool calls together to complete more sophisticated tasks.

This significantly expands what is possible with AmiBroker. Instead of relying solely on traditional menus, keyboard shortcuts, or custom AFL code, users can interact with AmiBroker using natural language. AI assistants can inspect charts, answer questions about the current workspace, annotate charts, automate repetitive workflows, and combine AmiBroker's powerful analytical capabilities with external knowledge and reasoning.

This demo runs entirely locally using the Gemma 4 12B language model, on a single RTX5060 TI 16GB card, no cloud services are involved. During the demonstration, the LLM invokes the following MCP tools:

  • get_current_symbol – retrieves the currently selected symbol.
  • chart_get_image – captures the current chart so the LLM can analyze what is displayed.
  • chart_draw_line – draws a trend line on the chart based on the LLM's analysis.

Watch the demo video: https://www.amibroker.com/video/mcp_demo.mp4

15 Likes