# McDonald's API

> McDonald's menu nutrition and restaurant locations are available through a workflow and API.

McDonald's returns menu item nutrition, allergens, ingredients, and photos; provide an item name and optionally a country. Search restaurants returns nearby US locations, today's hours, services, and directions; provide a city, address, or ZIP code.

- Page: https://fous.com/tools/mcdonalds
- Handle: `@mcdonalds`
- Category: [Food](https://fous.com/tools/category/food)
- Source website: https://mcdonalds.com
- Last verified: Sep 29, 2026

## Methods

### Get menu item nutrition

Operation `get_menu_item_nutrition`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Get a menu item's nutrition, allergens, ingredients and photo by name on McDonald's country site. Supports the United States, United Kingdom and Canada; serving size is one item or portion where no weight is published. UK sodium is calculated from the site's salt value.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `item` | string | yes | `"Medium French Fries"` | Menu item name, for example Big Mac or Medium French Fries. |
| `country` | string | no | `"United Kingdom"` | Country name or two-letter code, for example United Kingdom or GB. Defaults to United States. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "item"
  ],
  "properties": {
    "item": {
      "type": "string",
      "description": "Menu item name, for example Big Mac or Medium French Fries.",
      "examples": [
        "Medium French Fries",
        "Big Mac"
      ]
    },
    "country": {
      "type": "string",
      "default": "United States",
      "description": "Country name or two-letter code, for example United Kingdom or GB. Defaults to United States.",
      "examples": [
        "United Kingdom",
        "Canada"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "item": "Medium French Fries"
    },
    {
      "item": "Big Mac"
    },
    {
      "item": "Big Mac",
      "country": "United Kingdom"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `salt_g` | number or null | `2` |  |
| `country` | string | `"United States"` |  |
| `calories` | number or null | `320` |  |
| `sugars_g` | number or null | `0` |  |
| `allergens` | array |  |  |
| `energy_kj` | number or null | `1320` |  |
| `item_name` | string | `"Medium French Fries"` |  |
| `protein_g` | number or null | `5` |  |
| `sodium_mg` | number or null | `260` |  |
| `photo_link` | string or null | `"https://s7d1.scene7.com/is/image/mcdonalds/DC_202002_8932_MediumFries_1564x1564-1"` |  |
| `ingredients` | string or null | `"Ingredients: Potatoes, Vegetable Oil (canola Oil, Corn Oil, Soybean Oil, Hydrogenated Soybean Oil, Natural Beef Flavor ` |  |
| `total_fat_g` | number or null | `15` |  |
| `serving_size` | string or null | `"1 item"` |  |
| `item_page_link` | string | `"https://www.mcdonalds.com/us/en-us/product/medium-french-fries.html"` |  |
| `carbohydrates_g` | number or null | `43` |  |
| `saturated_fat_g` | number or null | `2` |  |

**Example input**

```json
{
  "item": "Medium French Fries"
}
```

**Example output**

```json
{
  "salt_g": null,
  "country": "United States",
  "calories": 320,
  "sugars_g": 0,
  "allergens": [
    "Milk",
    "Wheat"
  ],
  "energy_kj": 1320,
  "item_name": "Medium French Fries",
  "protein_g": 5,
  "sodium_mg": 260,
  "photo_link": "https://s7d1.scene7.com/is/image/mcdonalds/DC_202002_8932_MediumFries_1564x1564-1",
  "ingredients": "Ingredients: Potatoes, Vegetable Oil (canola Oil, Corn Oil, Soybean Oil, Hydrogenated Soybean Oil, Natural Beef Flavor [wheat And Milk Derivatives]*), Dextrose, Sodium Acid Pyrophosphate (maintain Col…",
  "total_fat_g": 15,
  "serving_size": "1 item",
  "item_page_link": "https://www.mcdonalds.com/us/en-us/product/medium-french-fries.html",
  "carbohydrates_g": 43,
  "saturated_fat_g": 2
}
```

### Search restaurants

Operation `search_restaurants`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Find McDonald’s restaurants near a US city, address, or ZIP code, nearest first, with today's hours, services and directions. Searches within 50 miles; open-now status follows the listed hours and may not reflect unexpected closures.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `location` | string | yes | `"10001"` | US city, street address, or ZIP code, for example Chicago, IL. |
| `max_results` | integer | no | `5` | Maximum restaurants to return, for example 10. |
| `open_now_only` | boolean | no | `true` | Only show restaurants open now, for example false. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "US city, street address, or ZIP code, for example Chicago, IL.",
      "examples": [
        "10001",
        "Chicago, IL"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 10,
      "maximum": 30,
      "minimum": 1,
      "description": "Maximum restaurants to return, for example 10.",
      "x-fous-developer": true,
      "examples": [
        5,
        10
      ]
    },
    "open_now_only": {
      "type": "boolean",
      "default": false,
      "description": "Only show restaurants open now, for example false.",
      "examples": [
        true,
        false
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "10001",
      "max_results": 5,
      "open_now_only": true
    },
    {
      "location": "Chicago, IL",
      "max_results": 10,
      "open_now_only": false
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `restaurants` | array |  |  |
| `restaurants[].address` | string | `"490 8th Ave, Manhattan, NY 10001"` |  |
| `restaurants[].latitude` | number | `40.75251` |  |
| `restaurants[].open_now` | boolean | `true` |  |
| `restaurants[].page_url` | string | `"https://www.mcdonalds.com/us/en-us/location/ny/manhattan/490-8th-ave/3078.html"` |  |
| `restaurants[].services` | array |  |  |
| `restaurants[].longitude` | number | `-73.993004` |  |
| `restaurants[].phone_number` | string or null | `"(917) 965-2018"` |  |
| `restaurants[].store_number` | string or null | `"3078"` |  |
| `restaurants[].directions_url` | string | `"https://www.google.com/maps/dir/?api=1&destination=40.75251%2C-73.993004&travelmode=driving"` |  |
| `restaurants[].distance_miles` | number | `0.34` |  |
| `restaurants[].todays_opening_hours` | string or null | `"Open 24 hours"` |  |
| `restaurants[].todays_drive_thru_hours` | string or null | `"Open 24 hours"` |  |

**Example input**

```json
{
  "location": "10001",
  "max_results": 5,
  "open_now_only": true
}
```

**Example output**

```json
{
  "restaurants": [
    {
      "address": "490 8th Ave, Manhattan, NY 10001",
      "latitude": 40.75251,
      "open_now": true,
      "page_url": "https://www.mcdonalds.com/us/en-us/location/ny/manhattan/490-8th-ave/3078.html",
      "services": [
        "Gift Cards",
        "Indoor Dining"
      ],
      "longitude": -73.993004,
      "phone_number": "(917) 965-2018",
      "store_number": "3078",
      "directions_url": "https://www.google.com/maps/dir/?api=1&destination=40.75251%2C-73.993004&travelmode=driving",
      "distance_miles": 0.34,
      "todays_opening_hours": "Open 24 hours",
      "todays_drive_thru_hours": "Open 24 hours"
    },
    {
      "address": "429 7th Ave, New York, NY 10001",
      "latitude": 40.750544,
      "open_now": true,
      "page_url": "https://www.mcdonalds.com/us/en-us/location/ny/new-york/429-7th-ave/2276.html",
      "services": [
        "Gift Cards",
        "Indoor Dining"
      ],
      "longitude": -73.990724,
      "phone_number": "(212) 736-7890",
      "store_number": "2276",
      "directions_url": "https://www.google.com/maps/dir/?api=1&destination=40.750544%2C-73.990724&travelmode=driving",
      "distance_miles": 0.35,
      "todays_opening_hours": "Open 24 hours",
      "todays_drive_thru_hours": "Open 24 hours"
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@mcdonalds",
  "visibility": "public",
  "operation": "get_menu_item_nutrition",
  "version": 1,
  "input": {
    "item": "Medium French Fries"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@mcdonalds\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_menu_item_nutrition\",\n  \"version\": 1,\n  \"input\": {\n    \"item\": \"Medium French Fries\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@mcdonalds",
  "visibility": "public",
  "operation": "get_menu_item_nutrition",
  "version": 1,
  "input": {
    "item": "Medium French Fries"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/mcdonalds`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_menu_item_nutrition`: Get menu item nutrition. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_restaurants`: Search restaurants. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-mcdonalds https://api.fous.com/mcp/tools/mcdonalds --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare calories and nutrients across menu items
- Check menu item allergens and ingredients
- Find nearby restaurants and compare listed services
- Check restaurant hours and directions before visiting

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this McDonald's tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a McDonald's account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from mcdonalds.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### How many calories are in a menu item?

Use Get menu item nutrition with the item name and optionally a country.

### Which allergens are listed for a menu item?

Get menu item nutrition returns listed allergens and ingredients for a named item.

### Where are restaurants near a US location?

Search restaurants finds locations near a US city, address, or ZIP code.

## Related

- [Starbucks API](https://fous.com/tools/starbucks.md): Starbucks provides menu drinks and food with nutrition, ingredients, allergens, and photos, plus nearby cafés ranked by distance with current open status, local hours, and amenities.
- [DoorDash API](https://fous.com/tools/doordash.md): DoorDash lists nearby restaurants and menus, prices, ratings, delivery fees, and estimated times; offers, availability, fees, and times can change.
- [Chipotle API](https://fous.com/tools/chipotle.md): Chipotle restaurant menus, prices, and nutrition information.
- [Uber Eats API](https://fous.com/tools/uber-eats.md): Uber Eats shows restaurants and delivery options, with menus, prices, ratings, and delivery details; fees may reflect guest promotions and rating counts may be rounded.
- [Google Maps API](https://fous.com/tools/google-maps.md): Google Maps returns nearby places, public place details, up to 100 public reviews, and up to three routes; transit options vary by departure time.
- [Yelp API](https://fous.com/tools/yelp.md): Yelp returns local business matches, public profiles, ratings and up to 60 publicly shown reviews; matches are unsponsored and Yelp-ordered, but later results may lack contact or location details.
- [Michelin Guide API](https://fous.com/tools/michelin-guide.md): Restaurant selections, distinctions and reviews from the Michelin Guide.
- [Costco API](https://fous.com/tools/costco.md): Costco returns US product prices/details and warehouse hours/services/gas prices; delivery affects availability, member prices may be hidden, and posted gas and holiday hours may differ.
- [All Food tools](https://fous.com/tools/category/food)
