# TF2 Wiki

> TF2 Wiki is an open-source MCP server for knowledge and memory. Live Team Fortress 2 wiki search, weapon stats, loadouts and patch notes for AI clients. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/yusufaf/tf2-wiki-mcp
- **MCP Registry name:** io.github.yusufaf/tf2-wiki-mcp
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [games and play](https://ai-powered.com/categories/games-and-play)
- **Listing updated:** 2026-11-23

## About

An unofficial fan project, not affiliated with Valve or the wiki's contributors, that lets an assistant read the Team Fortress Wiki instead of guessing at weapon numbers or cosmetic details. It runs over stdio and installs on demand with uvx.

Ten tools split into generic wiki access and Team Fortress 2 helpers. The generic ones search, fetch a page as wikitext, plain text or HTML, return a lead summary or a section list for selective fetching, and list recent changes. The game-specific ones parse a weapon's infobox into structured stats, list every weapon in a class's category, read cosmetic infobox fields, list the items added by an update or event, and fetch patch notes for a named update. A resource, tf2wiki://main, and two prompts, analyze_loadout and compare_weapons, are included.

Setup snippets are given for Claude Desktop, Claude Code, Codex, Cursor, Gemini CLI and VS Code. It requires uv.

## Features

- **Full-text wiki search:** Searches the Team Fortress Wiki with a result limit.
- **Page access formats:** Fetches pages as wikitext, plain text or HTML, or just the summary or section list.
- **Weapon stats:** Parses a weapon infobox into structured values.
- **Class loadouts:** Lists every weapon in a class's wiki category.
- **Patch notes and events:** Gets patch notes and the items added in an update or event.
- **Prompts included:** Ships analyze_loadout and compare_weapons prompts.

## Good for

- Check a weapon's exact stats before a match
- Compare two weapons side by side
- Look up what an update changed
- List items from a seasonal event
- Review recent wiki edits

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add tf2-wiki-mcp -- uvx tf2-wiki-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add tf2-wiki-mcp -- uvx tf2-wiki-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.tf2-wiki-mcp]
command = "uvx"
args = ["tf2-wiki-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user tf2-wiki-mcp uvx -- tf2-wiki-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "tf2-wiki-mcp": {
      "command": "uvx",
      "args": [
        "tf2-wiki-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 10 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `search_wiki` (name suggests: reads): Full-text search of the wiki.
- `get_page` (name suggests: reads): Returns page content as wikitext, plain text or HTML.
- `get_page_summary` (name suggests: reads): Returns the lead-section plain text.
- `get_page_sections` (name suggests: reads): Returns the section table of contents.
- `get_recent_changes` (name suggests: reads): Lists recently edited pages.
- `get_weapon_stats` (name suggests: reads): Parses a weapon infobox into structured stats.
- `list_class_loadout` (name suggests: reads): Lists all weapons in a class's category.
- `get_cosmetic` (name suggests: reads): Returns a cosmetic item's infobox parameters.
- `list_event_items` (name suggests: reads): Lists items added in an update or event.
- `get_patch_notes` (name suggests: reads): Returns patch notes for a specific update.

## FAQ

### Is TF2 Wiki official?

No. The README says it is unofficial fan tooling, not affiliated with Valve or the wiki contributors.

### What does TF2 Wiki need?

uv, which runs the package with uvx tf2-wiki-mcp.

### Which clients are covered?

Claude Desktop, Claude Code, Codex, Cursor, Gemini CLI and VS Code.

### Does TF2 Wiki use cached data?

The README describes it as live access to the wiki.

### Is TF2 Wiki free?

Yes. TF2 Wiki is open source, so you can use and self-host it for free.

### How do I add TF2 Wiki to Claude Code?

Run this command in your terminal: claude mcp add tf2-wiki-mcp -- uvx tf2-wiki-mcp

### What are the best alternatives to TF2 Wiki?

The closest alternatives to TF2 Wiki are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [NeuroDock Cognitive Graph](https://ai-powered.com/mcp/neurodock-cognitive-graph): NeuroDock Cognitive Graph is an open-source MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/tf2-wiki
