MCPLite

by acesanderson

208 downloads
Not rated
GitHub

About

MCPLite is a lightweight, pythonic implementation of the Model Context Protocol (MCP) for integrating external tools and data sources into LLM applications. It provides a decorator-based API inspired by FastAPI to turn any Python function into an MCP tool, resource, or prompt…

Details

Author
acesanderson
Downloads
208
Categories
Other

- Decorator-based API for tools, resources, and prompts
- Multiple transport modes: stdio, direct, and SSE
- Built-in servers for web fetching and Obsidian vaults
- Host orchestration engine for multi-server coordination
- Interactive chat interface with syntax highlighting and tool execution
- Pluggable transport layer with configurable logging

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCPLite
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install core dependencies (pydantic, rich) and optional ones for web functionality. Create an MCP server by instantiating MCPLite(transport="stdio") and decorating functions with @mcp.tool, @mcp.resource, or @mcp.prompt. Run the server with mcp.run(). For client orchestration, use the Host class; for interactive chat, use MCPChat. Built-in servers (e.g., fetch, obsidian) can be started via python -m MCPLite.servers.<name>.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcplite": {
            "MCPLite": {
                "command": "python",
                "args": [
                    "my_server.py"
                ]
            }
        }
    }
}

McpServers

{
    "MCPLite": {
        "command": "python",
        "args": [
            "my_server.py"
        ]
    }
}

MCPLite

Build Status
License
Python

A lightweight, pythonic implementation of the Model Context Protocol (MCP) for seamless integration of external tools and data sources into LLM applications.

MCPLite provides everything you need to build, connect, and orchestrate MCP servers with a clean, decorator-based API inspired by FastAPI. Turn any Python function into an MCP tool, resource, or prompt with just a decorator.

Quick Start

```python
from MCPLite import MCPLite

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.