Blawx MCP Server
Enables interaction with the Blawx API to discover project ontologies, ask questions using fact scenarios, and retrieve detailed, step-by-step explanations of logic-based answers. It allows agents to browse project content and drill down into model attributes and constraint satisfaction for rule-based reasoning.
README
blawx-mcp
A minimal run-local MCP server (SSE over HTTP) that calls the Blawx API using a Blawx API key.
Prereqs
- Python 3.10+
Install
From this repo root:
python -m pip install -e .
Configuration
Set required configuration in your environment:
export BLAWX_API_KEY="your_key_here"
export BLAWX_TEAM_SLUG="your_team_slug"
export BLAWX_PROJECT_ID="42"
You will find the Blawx Project ID and team slug in the URL of your
web browser when you go to the home page for your project. The
pattern will be
https://app.blawx.dev/a/{team_slug}/project/{project_id}
You can create a Blawx API Key if you have a Pro subscription to Blawx. Click on "Profile" in the left navigation bar, and find the "Add API Key" button. When you click the button your API key will be displayed only once at the top of the screen. Copy and paste it into your environment settings.
Run
Run the MCP server from this folder (no install required):
./.venv/bin/python -m blawx_mcp
Defaults:
- Binds to
127.0.0.1:8765 - SSE endpoint at
http://127.0.0.1:8765/sse
Optional server bind overrides:
export BLAWX_MCP_HOST="127.0.0.1"
export BLAWX_MCP_PORT="8765"
Connect to Your Coding Agent
Coding agents differ in how they configure MCP servers. This is a typical
tool definition in your mcp.json for VS Code.
{
"servers": {
"my-blawx-sse-server": {
"url": "http://127.0.0.1:8765/sse",
"type": "http"
}
},
"inputs": []
}
Tools
These tools give your coding agent the following capabilities:
- Discover what the project exposes (questions, fact scenarios, ontology).
- Ask a question (using either a stored fact scenario or a custom facts payload).
- Browse answers and drill into explanations (model/attributes/explanation text).
Here's a brief run-down of the available tools.
Health check
blawx_health: verifies the Blawx app is reachable and returns status/body.
Discover Project Content
Agents will usually start by listing the available questions, fact scenarios, and vocabulary.
blawx_questions_list: lists shared questions available in the project.blawx_question_detail: retrieves a specific question's details (useful when deciding which question id to ask).blawx_fact_scenarios_list: lists stored fact scenarios (prebuilt sets of facts you can re-use).blawx_fact_scenario_detail: shows the facts contained in a specific fact scenario.blawx_ontology_list: lists ontology categories/relationships (the project's vocabulary).blawx_ontology_category_detail: details for a specific category.blawx_ontology_relationship_detail: details for a specific relationship (including arity/parameters).
Ask Questions
blawx_question_ask_with_fact_scenario: asks a question using a stored fact scenario.blawx_question_ask_with_facts: asks a question using an explicit facts payload generated by your agent based on your instructions.
NB: It's not clear how good agents will be at generating representations of complicated fact scenarios in complicated vocabularies. It can be helpful to review how your agent formulated your fact scenario if you get unexpected results, and to give it hints on how to do better.
When you pose a question, the answer is saved on the Blawx server for approximately 30 minutes, and your agent can review it over that period of time. Once the data expires, your agent will need to pose the qestion again to analyse the responses further. Based on the instructions provided by the MCP server, it should know to do that when and if required.
Review Answers
Blawx's answers can be quite large, and agents have a limited context window, so the process of reviewing answers is broken into multiple steps.
- Get the list of answers to the question.
- Get the list of explanations for a specific answer.
- Look at the parts of a specific explanation.
-
blawx_list_answers: gives the list of answers available, and the bindings in those answers. -
blawx_list_explanations: gives the list of explanations available for an answer
There are four tools to retrieve specific parts of an explanation. These tools all allow the agent to select the entire part, or if it is too long, to select only certain lines at a time.
blawx_get_model_part: this returns the answer setblawx_get_attributes_part: this returns the constraints applied to variables in the model and explanationsblawx_get_explanation_part: this is the tree-structured, human-readable explanation for the answerblawx_get_constraint_satisfaction_part: this is the portion of the explanation that shows how global constraints were satisfied. This is often both verbose and unhelpful, so it is separated out. You may need to ask your agent to seek it specifically if you know your encoding uses constraints and you need to know how they are satisfied.
NB: The other three parts should be read alongisde the attributes, or relevant information may be missing. This instruction is provided to the agent, but if it isn't followed your agent may draw incorrect conclusions. It may be wise to instruct your agent to check the attributes in addition to the other parts of an explanation.
Development
The Blawx server used can be overridden for local development
BLAWX_BASE_URL(default:https://app.blawx.dev)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。