Skip to main content

A Model Context Protocol (MCP) service for data retrieval and query operations.

Project description

MCP Service

A Model Context Protocol (MCP) service for data retrieval and query operations.

Features

  • Query data from external sources
  • Retrieve real-time information
  • Support multiple data sources
  • Flexible query parameters

Installation

pip install bus-query-mcp

Or using uv:

uv pip install bus-query-mcp

Usage

Start MCP Server

bus-query-mcp

Available Tools

1. search_data

Search for available data records.

Parameters:

  • key (str): Search keyword

Returns:

  • List of matching records with details

2. get_location_info

Query real-time location information.

Parameters:

  • detail_url (str): Detail URL for precise query
  • direction (str, optional): Query direction

Returns:

  • Location information with coordinates

3. get_record_info

Query basic record information.

Parameters:

  • detail_url (str): Detail URL for precise query

Returns:

  • Basic information about the record

Dependencies

  • Python >= 3.10
  • aiohttp >= 3.9.0
  • mcp >= 0.9.0
  • beautifulsoup4 >= 4.12.0

Development

Install Dependencies

pip install -e .

Run Tests

python -m bus_query_mcp.main

License

MIT License

Notes

  • This service is for educational purposes
  • Please respect rate limits
  • Data accuracy may vary

Project details


Download files

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

Source Distribution

route_query_mcp-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

route_query_mcp-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file route_query_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: route_query_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for route_query_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45cc23df6dd2e95017ef0b1b05cf38c228bc64089e20b2d409fd69a9b1273666
MD5 37391c815509917ae26a1c735fe915e3
BLAKE2b-256 1a8d315c952a0a6994e8dcecfe157fe69183f8eb579c343440f86d48aa8c1cc1

See more details on using hashes here.

File details

Details for the file route_query_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: route_query_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for route_query_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96ec6cb35bead8162739c3c0811df90a5d1c7ffc9af05051bf983b5327ed3583
MD5 a05f972f2020a75eee5ef67acd96108e
BLAKE2b-256 da3cc1e6bd6013403e57e0196006832bfc30b11e53d5d6e8a819979de225d40a

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