# Flashscore MCP Server (`creator_224/flashscore-mcp-server`) Actor

Flashscore MCP with access to over 1000 leagues to 35 sports giving structured data from Flashscore.com (results, standings, fixtures, news, archives).

- **URL**: https://apify.com/creator_224/flashscore-mcp-server.md
- **Developed by:** [Filip Klosowski](https://apify.com/creator_224) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Flashscore

### Features

Access 1000 leagues to 35 sports. Extract team names, scores, dates, games played, wins, losses, points, form, fixtures, previous seasons, news headings with links etc.

League tools accept the name with its country (Premier League (England) or NBA (USA)) as well as a Flashscore path.

Available tools:

```
- list_sports():
						List of available sports.

- list_countries(sport):
						List of countries with available leagues in a particular sport.

- list_leagues(country, sport):
						List of leagues in a particular country in a particular sport.

- get_standings():
						
get_results_history,
get_upcoming_fixtures,
get_news,
list_archive_seasons,
get_league,
get_odds,
get_historical_standings,
get_historical_results,
get_match,
get_live_matches,
get_h2h,
get_matches_by_day,
get_team_form.
```

### Apify

The Actor builds from `Dockerfile.apify` and runs in Standby mode (`/mcp`).
Pick the run memory in the Actor's Standby / run settings; `actor.json` only
sets a 2 GB default and a 1 GB minimum, with no maximum, so a 16 GB, 64 GB or
any other run size works.

The server sizes its browser pool from the run at startup, so nothing needs
changing between sizes:

- pages = min((memory - 1 GB) / 512 MB, CPUs), at least 1 and at most 16.
- Apify gives about 1 CPU per 4 GB, so 4 GB runs 2 pages, 16 GB runs 4,
  32 GB runs 8 and 64 GB runs 16.
- Memory is read from `ACTOR_MEMORY_MBYTES` (set by Apify), CPUs from the
  container's CPU quota or memory / 4 GB.
- The values and their inputs are in the startup log and under `sizing` in
  `GET /health`.
- To pin a number, set `FLASHSCORE_MAX_CONCURRENT_PAGES` in the Actor's
  environment variables.

The per-page figure comes from local measurements: each Flashscore page holds
about 400-500 MB and uses about half a CPU core while it loads.

### License

Proprietary – Private production use only. All rights reserved.

# Actor input Schema

## `idleTimeoutSecs` (type: `integer`):

Informational only: this process does not apply the value. Set the Standby idle timeout in the Actor Standby settings in Apify Console. Use a high value there for always-on MCP access.

## Actor input object example

```json
{
  "idleTimeoutSecs": 3600
}
```

# Actor output Schema

## `mcpEndpoint` (type: `string`):

Streamable HTTP MCP endpoint. POST JSON-RPC here (initialize, tools/list, tools/call). Tools include list_sports, list_countries, list_leagues, get_league, get_standings, get_results_history, get_upcoming_fixtures, get_news, get_odds, list_archive_seasons, get_historical_standings, get_historical_results, get_match, get_live_matches, get_h2h, get_matches_by_day, and get_team_form. Each tool advertises a JSON output schema derived from the Pydantic response models.

## `health` (type: `string`):

JSON health check with status, service name, version, and mcp_endpoint.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("creator_224/flashscore-mcp-server").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("creator_224/flashscore-mcp-server").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call creator_224/flashscore-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,creator_224/flashscore-mcp-server"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KQFH7ycW2A38WpSWa/builds/xmXvzXYbn9z7UbKdL/openapi.json
