Futuur-MCP

Futuur-MCP

0

Futuur API MCP Integration is a TypeScript server facilitating seamless MCP integration with the Futuur API for managing market data, categories, user profiles, and betting operations. It features real-time data integration and modular architecture.

Futuur API MCP Integration

TypeScript Node.js

smithery badge

Overview

Futuur API MCP Integration is a powerful TypeScript-based server that implements the Model Context Protocol (MCP) for seamless integration with the Futuur API. This project provides a robust interface for handling market data, categories, user information, and betting operations.

Features

  • šŸ”„ Real-time market data integration
  • šŸ“Š Category management
  • šŸ‘¤ User profile handling
  • šŸŽ² Betting operations
  • šŸ“š Comprehensive documentation resources
  • šŸ› ļø Modular tool architecture

Prerequisites

  • Node.js (Latest LTS version recommended)
  • npm or yarn package manager

Installation

Prerequisites

  1. Install Node.js (LTS version) from nodejs.org
  2. Install one of the following:

Installation Steps

  1. Open your terminal and run one of the following commands based on your editor:

For Claude Desktop:

npx -y @smithery/cli install @futuur/futuur-mcp --client claude

For Cursor:

npx -y @smithery/cli install @futuur/futuur-mcp --client cursor

Manual Installation

If you prefer to install manually:

  1. Clone the repository:
git clone https://github.com/yourusername/futuur-api-mcp.git
cd futuur-api-mcp
  1. Install dependencies:
npm install

Project Structure

futuur-api-mcp/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ tools/          # Tool implementations
│   ā”œā”€ā”€ utils/          # Utility functions
│   └── index.ts        # Main server entry point
ā”œā”€ā”€ build/              # Compiled JavaScript output
ā”œā”€ā”€ package.json        # Project dependencies
ā”œā”€ā”€ package-lock.json   # Dependency lock file
ā”œā”€ā”€ tsconfig.json       # TypeScript configuration
└── .env               # Environment variables

Core Components

  • Market Tools: Handle market-related operations
  • Category Tools: Manage category data and operations
  • User Tools: Handle user-related functionality
  • Bet Tools: Process betting operations

Development

The project uses TypeScript for type safety and better development experience. The server implements the Model Context Protocol (MCP) using the official SDK.

Debug Mode

The server includes a debug mode that can be toggled by setting the DEBUG constant in index.ts. When enabled, it provides detailed logging information.

Dependencies

  • @modelcontextprotocol/sdk: Core MCP implementation
  • zod: Runtime type checking and validation

Integration

To integrate the MCP server with Cursor, follow these steps:

  1. Build the project:
npm run build
  1. Run the MCP server using Cursor:

Windows:

cmd /c npx mcprunner FUTUUR_PUBLIC_KEY=*YOUR_FUTUUR_PUBLIC_KEY* FUTUUR_PRIVATE_KEY=*YOUR_FUTUUR_PRIVATE_KEY* -- node C:/webapps/futuur-api-mcp/build/index.js

macOS/Linux:

npx mcprunner FUTUUR_PUBLIC_KEY=*YOUR_FUTUUR_PUBLIC_KEY* FUTUUR_PRIVATE_KEY=*YOUR_FUTUUR_PRIVATE_KEY* -- node C:/webapps/futuur-api-mcp/build/index.js

Make sure to replace *YOUR_FUTUUR_PUBLIC_KEY* and *YOUR_FUTUUR_PRIVATE_KEY* with your actual Futuur API credentials.

License

ISC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For support, please open an issue in the GitHub repository or contact the development team.


Made with ā¤ļø by the Futuur Team