constitute-mcp
v0.1.27MCP 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
| Parameter | Type | Description |
|---|---|---|
region_filter | ||
show_details | boolean |
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
| Parameter | Type | Description |
|---|---|---|
country_name * | string | |
exact_match | boolean |
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
topic_key * | string | |
in_force | boolean | |
is_draft | boolean | |
ownership | string |
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
| Parameter | Type | Description |
|---|---|---|
constitution_id * | string | |
topic_key * | string | |
in_force | boolean | |
is_draft | boolean | |
ownership | string |
export_constitution_json
Export constitution data as JSON. Args: constitution_id: ID of the constitution filename: Output filename (optional) Returns: Success message with filename
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
limit | ||
save_individual | boolean |