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.5-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lymcp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7ff8ae4f933c04cba1c040c156987f15cb27fe0f0854e5b2daa459f34144f95e
MD5 04d0c5ce26bdc244c7614d1e9ecf7d54
BLAKE2b-256 b287440923cb44b00b60eb0d1489f4cdaef8afb8981c96057cd6c0b7d9bc450b

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