Skip to main content

MCP server for Transfermarkt football data

Project description

Transfermarkt MCP Server

A Model Context Protocol (MCP) server for accessing Transfermarkt football data.

Features

  • 🔍 Search football clubs by name
  • 📊 Get detailed club profiles
  • 👥 Retrieve club player rosters
  • 🏆 Search and get competition information
  • ⚽ Search for individual players
  • 📄 Pagination support for search results
  • 🔧 Season-based filtering for players

Installation

  1. Clone the repository:
git clone https://github.com/emreclsr/transfermarkt-mcp.git
cd transfermarkt-mcp
  1. Install dependencies:
pip install -r requirements.txt

or

poetry install
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your API configuration

Configuration

Create a .env file with:

TRANSFERMARKT_API_BASE_URL=https://transfermarkt-api.fly.dev
LOG_LEVEL=INFO

Usage

Running the MCP Server

python -m src.transfermarkt_mcp.main

Available Tools

Club Tools

  • search_clubs(club_name, page_number=1) - Search for clubs
  • get_club_profile(club_id) - Get club details
  • get_club_players(club_id, season_id=None) - Get club players

Competition Tools

  • search_competitions(competition_name, page_number=1) - Search for competitions by name
  • get_competition_clubs(competition_id) - Get all clubs participating in a specific competition

Player Tools

  • search_players(player_name, page_number=1) - Search for players by name
  • get_player_by_id(player_id) - Get detailed information about a specific player

Development

Running Tests

pytest tests/

Code Quality

black src/
flake8 src/

Claude Desktop Config Example

{
  "mcpServers": {
    "transfermarkt": {
      "command": "your-uv-location/uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "--with",
        "requests",
        "fastmcp",
        "run",
        "your-workdir/transfermarkt-mcp/src/transfermarkt_mcp/main.py"
      ],
      "cwd": "your-workdir/transfermarkt-mcp/src",
      "env": {
        "BASE_URL": "https://transfermarkt-api.fly.dev",
        "PYTHONPATH": "your-workdir/transfermarkt-mcp/src"
      }
    }
  }
}

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e0ec3d8b9f7d304324b7f20031d5db0e16e81e080068948dc9555fc8685061a3
MD5 812311ab19040321a65b332d7777a7bf
BLAKE2b-256 4120d209daad62cbb294411570af3223e5049f6b20b1470414fe1f78eb3a6bf4

See more details on using hashes here.

File details

Details for the file iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e5e2d8bdb575514cd51152fe09d591f5873a55921f824efcd512c9b825cffc4
MD5 e137786fd6fd80942296de0664287cd9
BLAKE2b-256 dd6acce0ddcd25e4fee1dd67839ac1814e372ecfaf92a92d6139241107212ccf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page