Skip to main content

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

Metadata

Release files for iflow-mcp_emreclsr-transfermarkt-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_emreclsr-transfermarkt-mcp 0.1.0
File Size Uploaded
iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_emreclsr-transfermarkt-mcp 0.1.0
File Interpreter ABI Platform
iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz

Download URL iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e0ec3d8b9f7d304324b7f20031d5db0e16e81e080068948dc9555fc8685061a3
BLAKE2b-256 checksum
How to use checksums
4120d209daad62cbb294411570af3223e5049f6b20b1470414fe1f78eb3a6bf4
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl

Download URL iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e5e2d8bdb575514cd51152fe09d591f5873a55921f824efcd512c9b825cffc4
BLAKE2b-256 checksum
How to use checksums
dd6acce0ddcd25e4fee1dd67839ac1814e372ecfaf92a92d6139241107212ccf
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page