An OSGi bundle that exposes Jahia's GraphQL API as an [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server, enabling AI assistants such as Claude to query and mutate/query Jahia content directly.
Tag: https://github.com/Jahia/tomcat-log-provider/releases/1_0_3
Full changelog: https://github.com/Jahia/tomcat-log-provider/compare/1_0_2...1_0_3
Standardised module identity — all identifiers now consistently use the community-mcp prefix, matching the module's artifact ID and making it unambiguous alongside other Jahia community modules.
/modules/mcp → /modules/community-mcp
Update the url in your MCP client config (~/.claude/settings.json or equivalent):
{
"mcpServers": {
"jahia-mcp": {
"type": "http",
"url": "http://localhost:8080/modules/community-mcp",
"headers": {
"authorization": "APIToken <your-token>"
}
}
}
}
mcp → community-mcp
Existing tokens will stop working. Regenerate them with scopes graphql and community-mcp:
mutation {
admin {
personalApiTokens {
createToken(name: "my-mcp-token", scopes: ["graphql", "community-mcp"])
}
}
}
The OSGi API permission is now community-mcp (was mcp). Custom role grants referencing the old permission name must be updated.
No action needed for fresh installs. If you have customised these files, rename them manually:
| Old name | New name |
|---|---|
org.jahia.bundles.api.authorization-mcp.yml |
org.jahia.bundles.api.authorization-community-mcp.yml |
org.jahia.modules.PersonalApiToken-mcp.cfg |
org.jahia.modules.PersonalApiToken-community-mcp.cfg |
introspectSchemaReturns all available top-level GraphQL query and mutation operations with full type details. Call this first to discover what operations and arguments are available before calling executeGraphQL.
No input arguments required.
executeGraphQLExecutes any GraphQL query or mutation against Jahia's graphql-dxm-provider, subject to the configured whitelist.
| Field | Type | Required | Description |
|---|---|---|---|
query |
string | yes | GraphQL query or mutation |
variables |
object | no | Variables map for the operation |
Example — list root child nodes:
query {
jcr {
nodeByPath(path: "/") {
children {
nodes {
name
path
primaryNodeType { name }
}
}
}
}
}
Introspection fields (__schema, __type) always pass regardless of whitelist configuration.
listSkillsReturns the name, display name (mcpName), and description of every skill stored in JCR under /sites/systemsite/contents/mcp-skills/. Skills can be organized in sub-folders at any depth.
No input arguments required.
Example response:
[
{"name":"hello-jahia","mcpName":"Hello Jahia","description":"How to respond to Hello Jahia"}
]
getSkillReturns the full Markdown content of a skill by name. Call listSkills first to discover available names.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Skill name as returned by listSkills (may include sub-folder path, e.g. default/hello-jahia) |
Skills are Markdown documents stored as mcp:skill JCR nodes. They allow Jahia-specific knowledge and instructions to be delivered dynamically to any MCP client session.
A set of default skills is seeded into JCR on module activation. They are defined as .md files under src/main/resources/skills/ and are only created if the node does not already exist.
# List all skills
query {
mcpSkills {
name
mcpName
description
content
}
}
# Create or update a skill
mutation {
mcpSaveSkill(
name: "my-skill",
mcpName: "My Skill Display Name",
description: "What this skill does",
content: "# My Skill\n\nInstructions for Claude..."
)
}
# Delete a skill
mutation {
mcpDeleteSkill(name: "my-skill")
}
Drop a .md file with frontmatter into src/main/resources/skills/<subfolder>/:
--- mcpName: My Skill Display Name description: Short description of what this skill does --- Full Markdown instructions here...
The file name (without .md) becomes the JCR node name. The folder hierarchy mirrors the JCR sub-folder structure under mcp-skills/.
The admin UI at Administration → MCP Server lets you restrict which GraphQL operations the MCP server may execute.
| Whitelist state | Effect |
|---|---|
| Empty | All operations are allowed |
| Non-empty | Only listed operations (and their sub-paths) are allowed |
Entries are dot-separated field paths that mirror the GraphQL selection hierarchy:
| Entry | Covers |
|---|---|
admin |
All operations under admin |
admin.jahia |
All operations under admin.jahia |
admin.jahia.isAlive |
Only that specific nested field |
Whitelist entries are persisted in the OSGi configuration org.jahia.community.mcp and can also be set manually in META-INF/configurations/org.jahia.community.mcp.cfg:
whitelist=jcr,currentUser,admin.jahia.isAlive
Every blocked operation is logged at WARN level with the operation path, the authenticated user, and the client IP:
WARN McpServlet - MCP operation blocked: path='admin.jahia.shutdown', reason=not in the whitelist, user='john', ip='10.0.0.5'
A GET /modules/mcp request returns a JSON status response for authenticated users with the mcp permission:
{"status":"Jahia MCP server running","version":"1.0.0","tools":["executeGraphQL","introspectSchema","listSkills","getSkill"]}
Jahia 8.2+ with graphql-dxm-provider deployed
personal-api-tokens module deployed (for API token authentication)Deploy the bundle JAR via the Jahia Module Manager or drop it into $JAHIA_HOME/modules/.
On first activation the module automatically seeds a set of default skills into JCR under /sites/systemsite/contents/mcp-skills/.
Access to /modules/mcp requires a personal API token with both the graphql and mcp scopes.
Generate one in Jahia under Administration → Profile → Personal API Tokens, or via GraphQL:
mutation {
admin {
personalApiTokens {
createToken(name: "my-mcp-token", scopes: ["graphql", "mcp"])
}
}
}
Pass the token in every request:
Authorization: APIToken <your-token>
The mcp permission is automatically granted to users with the admin role (configured in META-INF/configurations/org.jahia.bundles.api.authorization-mcp.yml).
Add the following to ~/.claude/settings.json:
{
"mcpServers": {
"jahia-mcp": {
"type": "http",
"url": "http://localhost:8080/modules/mcp",
"headers": {
"authorization": "APIToken <your-token>"
}
}
}
}
MIT License
Copyright (c) 2026 - present Florent BOURASSÉ
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.