catfact-mcp-server

MCP server to fetch a random cat fact from catfact.ninja

GitHubスター

0

ユーザー評価

未評価

お気に入り

0

閲覧数

6

フォーク

0

イシュー

1

README
catfact-mcp-server

MCP server to fetch a random cat fact from catfact.ninja.

Overview

catfact-mcp-server is a lightweight Go-based server that exposes an endpoint for fetching random cat facts from the catfact.ninja API. It is designed for easy integration with other services or as a fun standalone utility.

Features
  • Fetches random cat facts from an external API
  • Simple and lightweight server, easy to deploy
  • Written in Go for maximum performance
Getting Started
Prerequisites
  • Go (version 1.16 or higher recommended)
Installation

Clone the repository:

git clone https://github.com/cursethevulgar/catfact-mcp-server.git
cd catfact-mcp-server
Usage

Build and run the server:

go run main.go

By default, the server listens on port 8080.

Fetch a Cat Fact

Send a GET request to:

http://localhost:8080/catfact

You’ll receive a random cat fact as a JSON response.

Example Response
{
  "fact": "Cats have five toes on their front paws, but only four toes on their back paws."
}
Configuration

You can modify the listening port or other parameters by editing main.go. (If environment variables or flags are supported, add those details here.)

Project Structure
catfact-mcp-server/
├── main.go
└── README.md
Contributing

Contributions are welcome! Please open an issue or submit a pull request for improvements or new features.

License

This project is licensed under the MIT License.

作者情報
Curse The Vulgar

Common practice is for commoners, I only follow exotic practice.

Sweden

0

フォロワー

2

リポジトリ

0

Gist

0

貢献数