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
- Clone the repository:
git clone https://github.com/emreclsr/transfermarkt-mcp.git
cd transfermarkt-mcp
- Install dependencies:
pip install -r requirements.txt
or
poetry install
- 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 clubsget_club_profile(club_id)- Get club detailsget_club_players(club_id, season_id=None)- Get club players
Competition Tools
search_competitions(competition_name, page_number=1)- Search for competitions by nameget_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 nameget_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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz | 8.2 kB | Without provenance | Details for iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for iflow_mcp_emreclsr_transfermarkt_mcp-0.1.0-py3-none-any.whl |
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}
|
Security for iflow-mcp_emreclsr-transfermarkt-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.