Peeper MCP Server

by maskedsaqib

245 downloads
Not rated
GitHub

About

Model Control Panel server for Peeper application

Details

Author
maskedsaqib
Downloads
245
Categories
Other

- Unified API for different AI model providers
- Model discovery endpoint (/api/models)
- Text completion endpoint (/api/completion)
- Easy to extend for additional models

Clone the repository, run npm install, copy .env.example to .env, add your API keys, then start the server with npm start (or npm run dev for auto‑restart). The server exposes two endpoints: GET /api/models to list available models and POST /api/completion to generate text completions.

Peeper MCP Server

A Model Control Panel (MCP) server for the Peeper application. This server provides a unified API to interact with various language models.

Features

- Unified API for different AI model providers
- Model discovery endpoint
- Text completion endpoint
- Easy to extend for additional models

Setup

1. Clone this repository

   git clone https://github.com/maskedsaqib/peeper-mcp-server.git
cd peeper-mcp-server

2. Install dependencies

   npm install

3. Create a .env file based on the example

   cp .env.example .env

4. Add your API keys to the .env file

5. Start the server

   npm start

For development with auto-restart:

   npm run dev

API Endpoints

GET /api/models

Returns a list of available models.

POST /api/completion

Generates text completion for the given prompt using the specified model.

Request body:

{
"modelId": "gpt-4",
"prompt": "Your prompt here"
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.