Skip to main content

No project description provided

Project description

ly-mcp

A Model Context Protocol (MCP) server for Taiwan's Legislative Yuan API v2, providing bill search, detailed information, related documents, and meeting records.

Features

This MCP server provides the following tools:

  • search_bills: Search bills by term, session, category, proposer, and other criteria
  • get_bill_detail: Get comprehensive information about specific bills (returns complete JSON)
  • get_bill_related_bills: Query related bills and their associations
  • get_bill_doc_html: Retrieve HTML document content for specific bills
  • get_bill_meets: Access bill deliberation records from various meetings

API Source

This MCP server uses the Legislative Yuan API v2 as its data source, providing information about Taiwan's Legislative Yuan bills and proceedings.

Installation & Usage

Quick Start

Install and run the server using uvx:

uvx lymcp@latest

MCP Client Configuration

Add the server to your MCP client configuration (e.g., Claude Desktop):

PyPI

{
  "mcpServers": {
    "lymcp": {
      "command": "uvx",
      "args": ["lymcp@latest"]
    }
  }
}

GitHub

{
  "mcpServers": {
    "lymcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/narumiruna/ly-mcp",
        "lymcp"
      ]
    }
  }
}

Local Development

{
  "mcpServers": {
    "lymcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/ly-mcp",
        "lymcp"
      ]
    }
  }
}

Development

Prerequisites

  • Python 3.12+
  • uv package manager

Setup

git clone https://github.com/narumiruna/ly-mcp
cd ly-mcp
uv sync

Running Tests

# Run full test suite with coverage
make test

# Run tests with verbose output
uv run pytest -v -s

Code Quality

# Run linter
make lint

# Run type checker
make type

# Run both linter and type checker
uv run ruff check .
uv run mypy .

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lymcp-0.1.6-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file lymcp-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: lymcp-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.17

File hashes

Hashes for lymcp-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 78b87f551c98c012addc6b05d33389a6445ce85d3017974637afb7c73be73aa5
MD5 84fcb1e847810514e52237f22e3c95be
BLAKE2b-256 1ba75cc32d7d23b6366c9be16c5cc61bb35ee140a10f08b930770253b3b727ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page