lontar-mcp
Provides tools for managing a blog through the Lontar headless blogging API, which is built on Laravel. Allows AI agents to list, create, update, delete, publish, and unpublish posts, as well as manage drafts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lontar-mcplist published posts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
lontar-mcp
MCP server that gives AI agents full blog management over a Lontar headless blogging API — list and read published posts, draft new content, publish, update, and delete.
Lontar is a Laravel package; this server talks to its HTTP API so agents can manage a blog without touching the CMS UI.
Tools
Tool | Auth | Description |
| No | List published posts (paginated) |
| No | Get a published post by slug, including rendered HTML body |
| Yes | List draft posts (paginated) |
| Yes | Create a new post (draft by default) |
| Yes | Update an existing post by slug |
| Yes | Permanently delete a post |
| Yes | Publish a draft (sets |
| Yes | Unpublish a post (clears |
list_posts / list_drafts
Parameter | Type | Default | Description |
|
|
| Page number |
get_post
Parameter | Type | Description |
|
| Post slug |
create_post
Parameter | Type | Default | Description |
|
| — | Post title (slug auto-generated) |
|
| — | Post body (Markdown) |
|
| — | Short excerpt |
|
| — | ISO 8601 date; omit to save as draft |
update_post
Parameter | Type | Description |
|
| Current post slug |
|
| New title (regenerates slug) |
|
| New body (Markdown) |
|
| New excerpt |
|
| New publish date, or |
delete_post / publish_post / unpublish_post
Parameter | Type | Description |
|
| Post slug |
All tool responses are JSON strings in the MCP text content field.
Related MCP server: @alog-world/mcp
Install
npm install lontar-mcpOr clone and build locally:
git clone https://github.com/thesimonharms/lontar-mcp.git
cd lontar-mcp
npm install
npm run buildRequires Node.js 18+.
Environment variables
Variable | Required | Description |
| Yes | API base URL, e.g. |
| For write ops | Laravel Sanctum bearer token |
MCP configuration
Cursor / Claude Desktop
{
"mcpServers": {
"lontar": {
"command": "node",
"args": ["C:/absolute/path/to/lontar-mcp/dist/index.js"],
"env": {
"LONTAR_API_URL": "https://your-blog.example.com/api",
"LONTAR_API_TOKEN": "your-sanctum-token"
}
}
}
}If installed globally or via npx:
{
"mcpServers": {
"lontar": {
"command": "npx",
"args": ["lontar-mcp"],
"env": {
"LONTAR_API_URL": "https://your-blog.example.com/api",
"LONTAR_API_TOKEN": "your-sanctum-token"
}
}
}
}Examples
List published posts
{ "page": 1 }Get a post
{ "slug": "hello-world" }Create a draft
{
"title": "My New Post",
"body": "# Hello\n\nMarkdown content here.",
"excerpt": "A short summary"
}Publish a draft
{ "slug": "my-new-post" }Development
npm run build # bundle server to dist/
npm start # run on stdio
npm test # build + run cobasaja testsTests live in tests/ and use cobasaja to spawn the server over stdio against an in-memory mock API, asserting tool behaviour end-to-end.
License
MIT © Simon Harms
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/thesimonharms/lontar-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server