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

bus_query_mcp-0.1.3.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.

bus_query_mcp-0.1.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file bus_query_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: bus_query_mcp-0.1.3.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 bus_query_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 af8e0020f4dc48e3f5caec5014da7ac446be53d2dc3ba019f66f1c23b363c79d
MD5 680680d30f348dc4e481bd1999259ff8
BLAKE2b-256 5454b2d3460d93b70a56ee47f82b6da092363203da793fd73ff0a478b71a098c

See more details on using hashes here.

File details

Details for the file bus_query_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: bus_query_mcp-0.1.3-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 bus_query_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5db5866e4ab324c4cf81cebf940d5a1a6085599e80b70527feaf7283c2ec83
MD5 fc08b5cc377d32aa206912525a0da061
BLAKE2b-256 b96019e3290a9c73216924d26c95d8fa0233d9a68cf982a0a733fd63527d446e

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