mcp-server-metatrader-4
mcp-server-metatrader-4 is a server implementation written in TypeScript for the MetaTrader 4 platform. This project enables automation and customization of trading systems, providing developers with a foundation to build their own trading strategies. By using TypeScript, it enhances type safety and development efficiency.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
20
Forks
0
Issues
0
README
MetaTrader 4 Server with Model Context Protocol
This project implements a MetaTrader 4 server integration using the Model Context Protocol (MCP) SDK. It provides a TypeScript-based solution for connecting and interacting with MetaTrader 4 trading platform.
Prerequisites
- Node.js (v14 or higher)
- npm (Node Package Manager)
- MetaTrader 4 platform
- TypeScript
Installation
- Clone the repository:
git clone https://github.com/rafehusain/mcp-server-metatrader-4.git
cd mcp-server-metatrader-4
- Install dependencies:
npm install
Inspector
npx @modelcontextprotocol/inspector --cli node ./build/index.js --method tools/list
Project Structure
├── build/ # Compiled JavaScript files
├── tools/ # Utility scripts and tools
├── index.ts # Main application entry point
├── package.json # Project dependencies and scripts
└── tsconfig.json # TypeScript configuration
Development
- Build the project:
npm run build
- Start the server:
npm start
Dependencies
- @modelcontextprotocol/sdk - Model Context Protocol SDK
- TypeScript - Programming language
- @types/node - TypeScript definitions for Node.js
License
See License
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support
For support, please open an issue in the GitHub repository.