Yahoo Fantasy Baseball MCP Server

Yahoo Fantasy Baseball MCP Server

Enables interaction with Yahoo Fantasy Sports API for fantasy baseball, providing tools to manage rosters and player stats via Claude.

Category
Visit Server

README

Yahoo Fantasy Baseball MCP Server

This MCP server provides tools to interact with the Yahoo Fantasy Sports API, specifically tailored for fantasy baseball leagues.

Features

  • OAuth 1.0a authentication with Yahoo API
  • Access to team rosters, player stats, and more
  • Integration with Claude via MCP protocol

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • Yahoo Developer account with API credentials
  • A Yahoo Fantasy Baseball league

Installation

  1. Clone this repository:

    git clone <repository-url>
    cd yahoo-fantasy-baseball-MCP
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables by creating or updating a .env file:

    YAHOO_CLIENT_ID=your_yahoo_client_id
    YAHOO_CLIENT_SECRET=your_yahoo_client_secret
    YAHOO_ACCESS_TOKEN=your_access_token
    

Obtaining Yahoo API Access

Note: The Yahoo Fantasy Sports API uses OAuth for authentication. The provided token script may need to be updated if the Yahoo API endpoints have changed.

  1. Visit the Yahoo Developer Network
  2. Create a new project/application with Fantasy Sports API access
  3. Make note of your Client ID and Client Secret
  4. Add these values to your .env file:
    YAHOO_CLIENT_ID=your_client_id
    YAHOO_CLIENT_SECRET=your_client_secret
    
  5. To get an access token, you may need to:
    • Use the Yahoo Developer Console to generate a token
    • Use a tool like Postman with OAuth 1.0a support
    • Follow Yahoo's official documentation for the latest OAuth workflow
  6. Once obtained, add the access token to your .env file:
    YAHOO_ACCESS_TOKEN=your_access_token
    

Building and Running the Server

Build the TypeScript files:

npm run build

Start the server:

npm start

MCP Configuration

To add this server to your Claude configuration, add the following to your MCP settings file:

"yahoo-fantasy-baseball": {
  "autoApprove": [],
  "disabled": false,
  "timeout": 60,
  "command": "node",
  "args": ["path/to/yahoo-fantasy-baseball-MCP/build/index.js"],
  "env": {
    "YAHOO_CLIENT_ID": "your_yahoo_client_id",
    "YAHOO_CLIENT_SECRET": "your_yahoo_client_secret",
    "YAHOO_ACCESS_TOKEN": "your_access_token"
  },
  "transportType": "stdio"
}

Available Tools

get_team_roster

Retrieves the current roster for a team.

Parameters:

  • team_key (optional): Yahoo team key. Defaults to your primary team.

Example usage:

Use the get_team_roster tool to see my current lineup.

get_waiver_players (Coming Soon)

Lists available players on the waiver wire with relevant stats.

get_matchup (Coming Soon)

Provides details about your current matchup.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured