Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple MongoDB Administrative Interface for Flask

Project Description

This is an Apache2-licensed Flask extension to perform basic queries and updates to MongoDB collections. It is a thin wrapper around pymongo, and as such it relies on it for validation and error checking.

This is a work in progres; I would love for this to become a feature-complete frontend to MongoDB which makes it easy to add on to any flask project.


  • Connect to Mongo databases or replica sets
  • Browse all databases available to a given connection string
  • Create new collections (specify capped, max size, etc)
  • Run queries against collections
  • Create and edit documents
  • Handles AutoReconnect errors and connection string errors

There are many useful things which are not yet part of this extension. Pull requests are absolutely welcome.


Couldn’t be easier:

$ pip install Flask-MongoMyAdmin


All you need is a valid MongoDB connection URI. This extension can manage multiple databases. You set them via key-value pairs in app.config['MONGOMYADMIN_DATABASES'].

The key is just a display name for that mongo connection. You may set it to whatever you would like. The value is a mongo connection string.

Here is a sample Flask app to get started:

from flask import Flask
from flask.ext.mongomyadmin import MongoMyAdmin

app = Flask(__name__)

app.config['SECRET_KEY'] = 'app secret key'

    'local': 'mongodb://',
    'remote_qa': 'mongodb://',

m = MongoMyAdmin(app)

def index():
    return 'hello'

if __name__ == '__main__':

From there, navigate to http://localhost:5000/MongoMyAdmin and you will see your databases.

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask-MongoMyAdmin-0.1.tar.gz (94.5 kB) Copy SHA256 Checksum SHA256 Source Nov 11, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting