Peeper MCP Server
by maskedsaqib
The Peeper MCP Server provides a unified API to interact with various language models. It serves as a Model Control Panel (MCP) for the Peeper application.
View on GitHub
Last updated: N/A
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
-
Clone this repository
git clone https://github.com/maskedsaqib/peeper-mcp-server.git cd peeper-mcp-server
-
Install dependencies
npm install
-
Create a
.env
file based on the examplecp .env.example .env
-
Add your API keys to the
.env
file -
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.