constitute-mcp

v0.1.27
constitute-mcp Checked 2 days ago Published 2 months ago

MCP server for Constitute Project constitution scraping and analysis

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_constitutions_list

Get a list of all available constitutions. Args: show_details: Whether to include detailed information region_filter: Filter by region (optional) Returns: JSON string with constitution list

ParameterTypeDescription
region_filter
show_detailsboolean

find_constitution_by_country

Find constitutions by country name. Args: country_name: Name of the country to search for exact_match: Whether to use exact matching Returns: JSON string with search results

ParameterTypeDescription
country_name *string
exact_matchboolean

scrape_constitution

Scrape the full content of a specific constitution. Args: constitution_id: ID of the constitution to scrape Returns: JSON string with scraping summary

ParameterTypeDescription
constitution_id *string

get_article_by_number

Get a specific article from a constitution by its number. Args: constitution_id: ID of the constitution article_number: Article number to retrieve Returns: JSON string with article content

ParameterTypeDescription
article_number *string
constitution_id *string

get_articles_range

Get a range of articles from a constitution. Args: constitution_id: ID of the constitution start_article: Starting article number end_article: Ending article number Returns: JSON string with articles in range

ParameterTypeDescription
constitution_id *string
end_article *string
start_article *string

search_articles_by_keyword

Search for articles containing specific keywords. Args: constitution_id: ID of the constitution keyword: Keyword to search for Returns: JSON string with matching articles

ParameterTypeDescription
constitution_id *string
keyword *string

topic_constitutions

Find constitutions by topic key. Args: topic_key: Topic key to search for (e.g., 'econplan', 'env', 'leg') in_force: Only include constitutions currently in force is_draft: Include draft constitutions ownership: Ownership filter ('all', 'public', 'mine') Returns: JSON string with matching constitutions

ParameterTypeDescription
topic_key *string
in_forceboolean
is_draftboolean
ownershipstring

topic_sections

Get specific sections from a constitution related to a topic. Args: topic_key: Topic key to search for constitution_id: ID of the constitution in_force: Only include constitutions currently in force is_draft: Include draft constitutions ownership: Ownership filter ('all', 'public', 'mine') Returns: JSON string with matching sections

ParameterTypeDescription
constitution_id *string
topic_key *string
in_forceboolean
is_draftboolean
ownershipstring

export_constitution_json

Export constitution data as JSON. Args: constitution_id: ID of the constitution filename: Output filename (optional) Returns: Success message with filename

ParameterTypeDescription
constitution_id *string
filename

export_constitution_text

Export constitution as plain text. Args: constitution_id: ID of the constitution filename: Output filename (optional) Returns: Success message with filename

ParameterTypeDescription
constitution_id *string
filename

scrape_all_constitutions

Scrape all available constitutions (batch operation). Args: limit: Limit the number of constitutions save_individual: Save individual files Returns: JSON string with operation summary

ParameterTypeDescription
limit
save_individualboolean