
cli
NAPIER 是一个支持模型上下文协议 (MCP) 的本地 LLM 代理工具,可通过命令行管理工具和聊天。
Repository Info
About This Server
NAPIER 是一个支持模型上下文协议 (MCP) 的本地 LLM 代理工具,可通过命令行管理工具和聊天。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
NAPIER
● ●
╳
● ●
N A P I E R
power to people
Overview
NAPIER is a local LLM agent with MCP (Model Context Protocol) capabilities. It allows you to:
- Chat with local LLM models through Ollama
- Act as an MCP host that can connect to various MCP-compatible tools
- Configure and manage these tools through a simple CLI interface
Features
- Local LLM Access: Uses Ollama to run language models locally on your machine
- MCP Host: Acts as a host for the Model Context Protocol
- Tool Integration: Connect to any MCP-compatible tools (like WhatsApp, file systems, web browsers, etc.)
- Easy Configuration: Simple CLI interface to manage your tools and preferences
- API Server: Exposes an API for other applications to interact with NAPIER
Installation
Prerequisites
- Python 3.8+
- Ollama (will be installed automatically if not present)
Setting Up
-
Clone the repository:
git clone https://github.com/yourusername/napier.git cd napier -
Install dependencies:
pip install -r requirements.txt -
Run NAPIER:
python napier_cli.py
Usage
Chat with Local LLM
NAPIER automatically manages Ollama for you. Once started, you can chat with your local LLM models through a simple interface.
Managing MCP Tools
You can add, remove, and configure MCP tools through the interactive menu:
- Add Tool: Configure a new MCP-compatible tool
- Remove Tool: Remove an existing tool
- Start/Restart Tools: Ensure all configured tools are running
Example: Adding WhatsApp MCP
Tool ID: whatsapp-mcp
Tool Name: WhatsApp MCP
Tool URL: http://localhost:3000
Start Command: npm run start
Command Directory: ./mcp-servers/whatsapp-mcp/
Capabilities: messaging,contact_management
Installation Command: npm install
Configuration
NAPIER stores its configuration in config/napier_config.json. This file contains:
- Basic NAPIER settings
- Default LLM model
- MCP host configuration
- Configured tools
Model Context Protocol (MCP)
The Model Context Protocol is a specification that standardizes how AI assistants interact with local tools and applications. NAPIER implements the MCP Host API, allowing it to:
- Discover MCP-compatible tools
- Execute actions on these tools
- Receive data from tools
- Manage permissions and security
Learn more about MCP at modelcontextprotocol.io
Developing MCP Tools
You can create your own MCP-compatible tools that work with NAPIER. An MCP tool should:
- Expose a REST API (typically on localhost)
- Implement the required MCP endpoints:
/status- Returns the status of the tool/capabilities- Lists the capabilities of the tool/actions/{action}- Endpoints for each action the tool can perform
API Reference
NAPIER exposes an API server at http://0.0.0.0:8000 with the following endpoints:
GET /tools- List all configured toolsGET /tools/{tool_id}- Get information about a specific toolPOST /tools/{tool_id}/start- Start a specific toolPOST /chat- Send a chat message to the local LLM
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Quick Start
Clone the repository
git clone https://github.com/va99/cliInstall dependencies
cd cli
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.