sql2json — Agent Tool by fsistemas

by fsistemas · Agent Tool · ★ 55

Last updated: · Indexed by AgentSkillsHub · Auto-synced every 8h

About sql2json

sql2json Run SQL queries and get JSON (or CSV) on stdout — pipe it anywhere. connects to any SQLAlchemy-supported database, executes a query, and writes the results as JSON to standard output. No server, no framework, no boilerplate. Use cases Scheduled reports: run a cron job that pulls yesterday's sales and posts the JSON to a dashboard (Geckoboard, Grafana, etc.) Shell pipelines: pipe query results into , , or any CLI tool that speaks JSON AI agent data retrieval: let an LLM agent query your database with a single subprocess call — see AGENTS.md ETL glue: extract rows as JSON, transform with standard tools, load elsewhere Monitoring & alerting: script threshold checks against live database metrics Install SQLite works out of the box (it ships with Python). For PostgreSQL or MySQL, install the matching driver extra: Other databases work too — install any SQLAlchemy-supported driver (e.g. for MS SQL Server) alongside . Docker The image includes drivers for PostgreSQL

automationclicommand-line-toolconvertercsvdatabaseexcelexportjsonmysql

Quick Facts

Stars55
Forks11
LanguagePython
CategoryAgent Tool
LicenseMIT
Quality Score72.2503613308719/100
Last Updated2026-07-01
Created2019-12-21
Platformscli, python
Est. Tokens~17k

Compatible Skills

These tools work well together with sql2json for enhanced workflows:

  • exstruct — semantic(0.27)+complementary+rare_topics+same_lang+similar_pop+shared_platform (64%)
  • strimzi-kafka-cli — semantic(0.28)+complementary+rare_topics+same_lang+similar_pop+shared_platform (59%)
  • mcp-excel-server — semantic(0.24)+complementary+rare_topics+same_lang+similar_pop+shared_platform (58%)

sql2json alternative? Top 6 similar tools

Looking for a sql2json alternative? If you're comparing sql2json with other agent tool tools, these 6 projects are the closest alternatives on Agent Skills Hub — ranked by topic overlap, star count, and community traction.

  • MCP-PostgreSQL-Ops by call518 · ⭐ 150

    🐘 Give AI assistants full PostgreSQL DBA superpowers — 30+ tools for performance analysis, bloat detection, l

  • slowql by makroumi · ⭐ 140

    SQL static analyzer for performance, security, compliance and cost. 272 rules. Completely offline. Works in C

  • AutoRedTeam-Orchestrator by Coff0xc · ⭐ 230

    Enterprise AI Red Team Platform | 企业级AI红队平台 | 132 MCP Tools | Pure Python Engines | SDK+CLI+MCP | Auto-Downloa

  • langchain_data_agent by eosho · ⭐ 216

    NL2SQL - Ask questions in plain English, get SQL queries and results. Powered by LangGraph.

  • python-samples-fastapi-restful by nanotaboada · ⭐ 132

    🧪 Proof of Concept for a RESTful API built with Python 3 and FastAPI

  • hyperterse by hyperterse · ⭐ 80

    The agentic server framework.

More Agent Tool Tools

Explore other popular agent tool tools:

View all Agent Tool tools →

Popular Python Agent Tools

Frequently Asked Questions

What is sql2json?

sql2json is Python CLI tool to run queries against sqltatabases and convert the results to json, csv, excel in the command line or python program. Easy to use for Humans, automations, LLMS/Agents. It is categorized as a Agent Tool with 55 GitHub stars.

What programming language is sql2json written in?

sql2json is primarily written in Python. It covers topics such as automation, cli, command-line-tool.

How do I install or use sql2json?

You can find installation instructions and usage details in the sql2json GitHub repository at github.com/fsistemas/sql2json. The project has 55 stars and 11 forks, indicating an active community.

What license does sql2json use?

sql2json is released under the MIT license, making it free to use and modify according to the license terms.

What are the best alternatives to sql2json?

The top alternatives to sql2json on Agent Skills Hub include MCP-PostgreSQL-Ops, slowql, AutoRedTeam-Orchestrator. Each offers a different approach to the same problem space — compare them side-by-side by stars, quality score, and community activity.

View on GitHub → Browse Agent Tool tools