Dog API MCP Server

Dog API MCP Server

Enables AI assistants to fetch dog breed data, including descriptions, attributes, and group information, via the Dog API through natural language queries.

Category
Visit Server

README

FastMCP Dog API Server 🐶

A production-ready Model Context Protocol (MCP) server built with Python, FastMCP, FastAPI, and HTTPX to provide dog breed data from the Dog API. Designed for seamless integration with AI assistants like Gemini, Claude, Cursor, and Antigravity IDE.

Python FastAPI Vercel License


🌟 Live Endpoints


✨ Features

  • Dog Breeds Tool: Exposes the get_dog_breeds asynchronous tool to fetch real-time breed descriptions, attributes, and group data.
  • Server-Sent Events (SSE): Full MCP SSE transport implementation for continuous streaming communication with AI clients.
  • Cross-Origin Resource Sharing (CORS): Configured with edge-level and application-level CORS (Access-Control-Allow-Origin: *) for browser-based AI client handshakes.
  • Gemini Spark OAuth Support: Includes auto-discovery (/.well-known/oauth-authorization-server), /authorize, and /token endpoints for zero-friction connection with Gemini Connected Apps.
  • Cloud Native: Deployed serverless on Vercel with Python 3.12 runtime.

šŸ› ļø Tech Stack

  • Framework: FastMCP (mcp>=1.2.0,<2.0.0), FastAPI
  • HTTP Client: httpx
  • ASGI Server: Uvicorn
  • Deployment: Vercel Serverless Functions (@vercel/python)

šŸš€ Local Development Setup

Prerequisites

  • Python 3.10+
  • Git

1. Clone Repository

git clone https://github.com/rislrohitjain/mcp-dog-api.git
cd mcp-dog-api

2. Create and Activate Virtual Environment

# Windows
python -m venv venv
.\venv\Scripts\activate

# Linux / macOS
python3 -m venv venv
source venv/bin/activate

3. Install Dependencies

pip install -r requirements.txt

4. Run Server Locally

uvicorn api.index:app --host 0.0.0.0 --port 8000 --reload
  • Local Status Endpoint: http://172.18.177.164:8000/
  • Local SSE Endpoint: http://172.18.177.164:8000/mcp/sse

šŸ”Œ Connecting to AI Assistants

Gemini Connected Apps

  1. Open Gemini -> Settings -> Connected Apps.
  2. Add a Custom MCP Server and paste:
    https://mcp-dog-api.vercel.app/sse
    
  3. Complete the auto-authorization step.

Local Agent Config (.agents/mcp_config.json)

{
  "mcpServers": {
    "dog-api-live": {
      "url": "https://mcp-dog-api.vercel.app/sse"
    }
  }
}

šŸ“‚ Project Structure

mcp-dog-api/
ā”œā”€ā”€ api/
│   └── index.py            # FastMCP & FastAPI server implementation
ā”œā”€ā”€ .agents/
│   └── mcp_config.json     # MCP server configuration
ā”œā”€ā”€ requirements.txt        # Python package dependencies
ā”œā”€ā”€ vercel.json             # Vercel deployment & edge CORS configuration
ā”œā”€ā”€ .gitignore              # Git ignore rules
└── README.md               # Documentation

šŸ‘¤ Author & Profile

Created by Rohit Jain


šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

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