Agents Library MCP Server
Enables access to agent instruction files and prompts for AI development workflows. Provides tools to retrieve and list development rules, security checks, and common prompts from an agents library through MCP protocol.
README
MCP Server
This is a Python project designed to serve as an MCP (Multi-Cloud Platform) server. It utilizes FastAPI for the web framework and Uvicorn as the ASGI server. The project also includes an agents-library for managing agent-related rules and prompts.
:rocket: Technologies Used
- Python
- FastAPI: Web framework for building APIs.
- Uvicorn: ASGI server.
- mcp: Multi-Cloud Platform SDK.
:open_file_folder: Project Structure
Dockerfile: Used for containerizing the application.compose.yaml: Used for running the application with Docker Compose.requirements.txt: Lists Python dependencies.app/:server.py: The main application server.
agents-library/:dev_rules.agents.md: Development-related agent rules.security_checks.agents.md: Security-related agent checks.common_prompts.agents.md: Common prompts for agents.
:checkered_flag: Getting Started
To get started with this project, you need to have Python 3.10+ and Docker installed on your system.
Prerequisites
- Python 3.10+
- Docker
- pip
Installation
-
Create and Activate Virtual Environment:
python3 -m venv venv source venv/bin/activate -
Install Dependencies:
pip install -r requirements.txt
:hammer_and_wrench: Building and Running
You can run the server using Docker Compose or directly with Uvicorn.
Using Docker Compose
To run the server with Docker Compose, use the following command:
docker compose up
Using Uvicorn
To run the server with Uvicorn, use the following command:
uvicorn app.server:app --host 0.0.0.0 --port 8080
:scroll: Development Conventions
- Virtual Environments: Always use a virtual environment for dependency management.
- Dependencies: All Python dependencies should be listed in
requirements.txt.
:electric_plug: API Endpoints
The following API endpoints are available:
POST /test/call_tool: Test endpoint for direct tool invocation.POST /test/read_resource: Test endpoint for direct resource invocation.
The MCP server also exposes the following tools:
get_agents_instructions: Retrieves a specific AGENTS.md file for providing AI with instructions and context.list_agents_instructions: Lists all available AGENTS.md files.
:gemini: Adding to gemini-cli
To add this server to gemini-cli, you need to edit your settings.json file. You can find this file in ~/.gemini/settings.json (user settings) or in .gemini/settings.json (project settings).
Add the following to your settings.json file:
{
"mcpServers": {
"httpServer": {
"httpUrl": "http://<ip-address>:8080"
}
}
}
Using the mcp tool
Once the mcp-server is configured in gemini-cli, you can use the mcp tool to interact with the server. For example, to list all available agent instructions:
gemini mcp list_agents_instructions
To retrieve a specific agent instruction file:
gemini mcp get_agents_instructions --file_name dev_rules.agents.md
See reference.
:balance_scale: License
This project is licensed under the Apache License 2.0.
:pencil: Author
This project was started in 2025 by Nicholas Wilde.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.