Skip to main content

data-mcp

A modular Python library for querying internet data through curl.

Why this library

  • Uses curl under the hood for reliable HTTP querying.
  • Keeps querying logic modular through provider classes.
  • Works as both an importable library and a CLI.

Install

pip install data-mcp

For local development:

pip install -e ".[dev]"

Quick start

from data_curl import DataClient
from data_curl.providers.generic import GenericProvider

client = DataClient()
provider = GenericProvider(client)
result = provider.query("https://httpbin.org/get", params={"q": "hello"})
print(result.status_code)
print(result.json())

CLI

data-mcp generic https://httpbin.org/get --param q=hello

Core concepts

  • DataClient: wraps curl execution and response parsing.
  • BaseProvider: extension point for modular providers.
  • QueryResult: standardized response object.

Add your own provider

from data_curl.providers.base import BaseProvider

class WeatherProvider(BaseProvider):
    name = "weather"

    def query_city(self, city: str):
        return self.client.get(
            "https://example.com/weather",
            params={"city": city},
        )

Publish to PyPI

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

Metadata

Release files for data-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for data-mcp 0.1.0
File Size Uploaded Provenance Actions
data_mcp-0.1.0.tar.gz 5.8 kB Without provenance Details for data_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for data-mcp 0.1.0
File Interpreter ABI Platform Actions
data_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for data_mcp-0.1.0-py3-none-any.whl

Total release size: 14.3 kB

Release files / data_mcp-0.1.0.tar.gz

Download URL data_mcp-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
93085eae686621f4915c1846e72b5e47adbebba27789b89846f53b65289a289e
BLAKE2b-256 checksum
How to use checksums
7e473ca1feee5bf68890cd4ed1305670b55c3440abd08e097d537af77c148c61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / data_mcp-0.1.0-py3-none-any.whl

Download URL data_mcp-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fa21a380e27ceca1d867ca4e4186096fac158a8189af203c7a10a16b35c2a08
BLAKE2b-256 checksum
How to use checksums
bded3b1c3a26ec688eb60f9e8cc6d059a1c73102e955fcf4858a7a0db9c8247c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for data-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page